It is not good to compare ourselves to others most of the time.
But when it inspires you, then go for it.
I have done a lot of things in my life that I saw others and then took a shot at it myself. Sometimes, it didn’t work out and when it did it was great.
And, when the time is right, get out of the rat race, out from places where others compare you against your peers.
At times, there may be a feeling of envy when you look at others, but that feeling does not emanate from comparison, instead, it emanates from low self-esteem. So, that’s what needs work.
And, of course, don’t compare yourself on things you can’t change. Compare what you can change.