Like others have echoed, no innate cooling advantage from a heat pump, unless the compressor itself is more efficient than the older unit. The main advantage is the ability to run in reverse and provide efficient transfer of heat vs inefficient resistive heating.
Solar is not free either. but yes solar is the way to go once you recoup your installation/equipment cost, while utilities continue to increase in price.