the ego can't be alone.
Our ego can't live in a world where there aren't other people to compare it to. Think about that for a second. If you're alone on an island, you ego is going to have a much harder time corrupting you than it is helping you.
The next time your ego is driving you crazy, just look for the person it's comparing you to and kindly ask your ego to stop paying attention to them and start paying attention to you again.