There is no way that is true unless those solar panels are very subsidized. The energy needed to make a PV is 2x what that panel would harvest over its entire lifetime in Scotland for example. Scotland is a terrible place for PV. The numbers you give are probably accurate for central Mexico though. Also, the mean lifetime of a PV panel is 20 years.
Your information appears to be 20 years out of date.
We spend billions every year in gas subsidies. We spend billions every year in food subsidies. For energy independence and the carbon reduction alone, this is a worthwhile investment even if the upfront costs are substantial.