There is a simple answer to your question, one that you have obviously overlooked. You start with a premise that is unrealistic and therefore false.
You, like many others, seem to be focused on others. How smart they are, how much money they have, how strong they are etc. I think that is a big mistake. Competition with others is okay, as a means to make yourself better, but that is as far as it should go.
All you really have to be is the best that "you" can be! If you can Squat 365lbs is that good? It depends doesn't it? It depends not on what a champion powerlifter can squat, but what you could squat last year or six months ago. Every single person on earth is different in some way. You are a unique individual and can do many things that I am incapable of doing. And I can probably do a few things that you are incapable of doing. However, that means nothing! The only important comparison is you vs you!
Forget the notion that your worth is somehow dependent upon what others can do. Nothing could be further from the truth. When you do this you give others the power to make you feel bad for no reason. Your feeling of self worth will largely be predicated upon what you can do! Always try to be the best that "you" can be. Even if it is one small area. If you keep trying to be the best that you can be, independent of what others can or cannot do, then you will be a true success!
I set goals for each New Year. I have them in every facet of my life from family to training. If I achieve a goal and better what I did the previous year then I win, it's that simple. I have been doing this for many, many years and it has always worked for me.
Matters not to me that Joe Schmoe can Squat 800lbs. I am happy for them. But, if I went from 335lbs to 365lbs in one year, I win because I am now a better me, at least in that area. I urge you to look at every area of your life that way! By the way when I began tracking my Pull-ups I could only do 3. I am now shooting for a goal of 40 in a row! That sure as heck is not the best but look how far I have come by putting the focus on me vs me.
One last thing, instead of comparing yourself with others don't forget to focus on what you can do for others! This is very helpful relative to mental health. there is a way that you can become great. You can become a great human being by reaching out to help others! Next time someone needs something you be the guy who helps them out. It can something as small as a ride down the street. It can also me volunteering to work at a food pantry. It's up to you. Sounds corny but it's true, give it a try!
If you ever want to talk, you can PM me anytime!
Best To You,