There is a thin line between competition and comparison
Competition is healthy, it pushes you out of your comfort zone to aim higher. But comparism has an element of jealousy which can grow into envy. It makes you think less of your self as you subconsciously make others the bane of your existence. This is very unhealthy for our growth, mentally and emotionally.
Learn to broaden that thin line
Self confidence is the key!