Buddhism and Vedanta Hinduism teach that the ego, the Self, is an illusion

I think of it as a restriction. The more you expand your mind, the less restricted your mind becomes, the closer it comes to your true reality behind the illusion of the Self.

Once you free yourself from the illusion of the self, or Ego, your mind can go anywhere!