Stability of carbocation

While comparing the stability, as the $$\ce{CH3}$$ group is electron donating, the first structure should be more stable due to this reason. But apparently the second one is more stable. Is there another phenomenon taking place here?