I went through this course, the Yale Course on Happiness, a couple years ago. I think it is really valuable for understanding what will bring us happiness and/or inner peace.
I was told I was very smart when I was young and as it has turned out, at least at programming, I'm not that great. (I retired a year and a half ago).
I think a lot of people are working as hard as they can, and trying to act like they're not. The people you're comparing yourself to may be working as hard as you are. I think the happiness course is really good though, here's the link: https://online.yale.edu/courses/science-well-being