When we do something far too often, without knowing its repercussions, we fail to see it as a vice. Therefore, to extricate ourselves from the web of unnecessary comparisons, we need to be aware of what we are doing. Any time you feel that you are trying to measure up to somebody, engage in self-talk, and convince yourself that this whole idea can be noxious for you. Constantly look out for such behavior, and dissociate your mind from such feelings. Over a period of time, you will see that the urge to always compare yourself with others has gone down.