Comparing yourself to others is a toxic human trait which does nothing but resulting in poor self-confidence. Perfection is an impossible idea and while it’s easy to say that “it’s okay to make mistakes” and “nobody’s perfect”. Sometimes it’s harder to apply those ideas to yourself. When you compare yourself to others, you’re doing everyone an injustice. If you focus on what makes you unique like your skills and potential only in comparison to other people, there will always be someone who outdoes you and you’ll always end up feeling bad.
Instead concentrate on where you are in your path of growth everyone learns different things at different paces at different times in their lives. Where you’re at is just as valid as where everyone else is.