I can't give you a link to a verification of my assertion that ALL technology, including solar panels, costs more energy to produce, operate, maintain, and dispose of than they ever produce. The verification is in my recent book, but I'm not allowed to enter a link to it or even its title on these forums. In this book, I did use solar systems as my example.
What I believe is the problem with the AI response to your question is that you only asked about the energy "generated" by a solar panel. Without getting into clarifications of the use of the word "generate," I'll only say that you would also have to include the manufacture, operation, maintenance, and disposal of all the related technologies associated with the solar panels and required for their use. Examples of these are their mounting brackets, all the wiring used to transfer the harvested electricity to where it will be used, batteries, if they are part of the system, inverters, if AC electricity is required, etc,, the list goes on and on. When you add the energy expended (and all the pollution created) to manufacture and use all these various parts, the total usable electricity produced is less than that.