I kind of get what you go through. The thing is we are programmed now to see great moments and achievements on social media or when we meet them, and our surroundings have made such behaviour patterns within us, that we instantly get impressed by the person's way of talking, achievements and what not. Because first impression is the last impression.(Nope, never).
Second, it is because of our naivety and unawareness of ourselves that we find ourselves constantly comparing ourselves to others, thinking they have done such things but in comparison to that, I have done nothing.
So, quite a few things here: First, comparison of our abilities to others, second, putting people on a pedestal higher than what they actually are, third, underestimating ourselves which further leads to overthinking and inaction and messes up with brain by creating scenarios which are actually not going to happen.
Solution :
1) First, take control of yourself. Realise you are living through life and everyone has their own challenges in their journey. For e.g: Someone is very responsible towards their family and work due to their challenging circumstances and you had a rather balanced mixture of experiences, then it's okay. Understand, you bring something unique to the world through your own experience, your own voice, your own creativity. Nor everyone has learned everything, neither everyone is master at everything.
2) Develop a character where you work on yourself by delaying your reactions to instantly either get impressed by the person or judge them on any kind thing they are sharing with you. It's a very difficult skill to listen to others without judging them and getting ourselves affected through their reactions. The key is to understand them while keeping yourself aware of your senses/emotions as well.
3) Try to know yourself better through meditation, being out in nature, sitting with yourself idly, journallng down your thoughts. Remember if you struggle to stay with yourself, then no matter who you are with, you will always feel inferior/ unrestful.
4) No one is sharing their failures with you. So, remember you are just seeing a fraction of themselves, not as a whole. But you see yourself everyday, being clumsy, failing in following something or being happy and satisfied in achieving your goals. So, you have a complete view of yourself. And that's where you make wrong comparisons by belittling yourself and giving others a higher pedestal.
5) It's easier said than done. Believe me, I have had my share of experiences with people and it gets hard to let that feeling go away where you feel like inferior or your unrestful thoughts roam around every night with you while lying in bed. The simple solution is: Give yourself some time. It's not a competition, it's life. And everyone has got their own set of question papers. Someone may be earning crores, and you are earning in just initial lakh figures. Does that make your struggle unworthy? No, not all.
I get some of the things that goes on in the world when we see people but think it like this, there would be someone around in your life thanking God for you that yes, you are in their life. It could be your parents, your dog, , your cow whom you feedback everyday while she comes at your door, your neighborhood, or any stranger whom you have helped knowingly/unknowingly bringing a smile on their face.
So, don't sweat on this stuff, happens with everyone. Thing is, whether you want to work on this or not. If yes, you will figure yourself out eventually. Gradually but definitely. So trust yourself more, your instincts more and work on yourself. All the best.