Comparison is rooted in the ego, a defense mechanism against negative emotions. The ego plays a role in shaping our identity and leads to suffering while protecting us from other emotions. It often manifests as a coping mechanism, disguising deeper fears or insecurities. By understanding and monitoring the ego, one can start to avoid the pitfalls of comparison.