When your mind is being driven towards thoughts of comparison, just… stop.
When you know that asking that particular question would lead to thoughts of comparison, don’t ask. It would just be a waste of space, time and effort.
Unless you have it in yourself to be sincerely happy for the other then good! It means you have gone beyond being petty and actually have peace within yourself. But if not, dude you have some serious shit to work with. When another person is on the verge of making comparisons, the easy thing to do would be to tell them to shut up. But that wouldn’t actually be an easy feat.
Or you could just start singing Blink-182’s song ‘shut the fuck up she said, I’m going fucking deaf, you’re always too loud.’ You know, that kinda thing. 😂