If solar panels are dumpstered at the end of their life cycle but save CO2 emissions, it’s a non-factor.
And in any case, they’re made largely of aluminum which is profitable to recycle (which means it will actually happen if its own accord) and a solved problem.
Any real negative externalities come in manufacture or installation.
To illustrate how fast this field is, just this month there have been some new results in recycling them: https://interestingengineering.com/energy/solar-panel-recycl...
Who cares about panel recycling? bury them if we have to, they're non toxic, and would be an infinitesimally small % of total annual landfill. Such an irrelevant "gotcha" i wonder why people keep repeating it?
This link from the EPA suggested that EoL solar panels could be considered hazardous waste under RCRA due to heavy metal leaching, which is an "externality" like CO2, and the very reason I asked the question.
So, if you believe the EPA, they are not "non-toxic" and could add up to "up to 10 million tonnes" of panels that need to be safely disposed.
https://www.epa.gov/hw/end-life-solar-panels-regulations-and...
So perhaps you should care about panel recycling?