It’s easy to convince yourself that you’re doing well if you compare yourself to your peers who are doing worse than you. Unfortunately, this is a recipe for mediocracy. Eventually, your self-induced laziness lets your peers catch up and then surpass you.
A better measuring stick is the friend who is doing better than you. But long term, this still aims to low.
The best measuring stick is the person who as already accomplished everything you want. Depending on your goals, that person may not even exist yet.