The trick isn't to stop comparing yourself to others — that's impossible. The trick is to compare yourself to better people for better reasons. Find people you genuinely admire, who make you want to be better, who have done things you believe you could do too. Your brain will do the comparison work automatically; your job is just to curate the reference points.