Wow, what an argument. Solar panels don’t last forever and have to be maintained and replace effectively forever making the cost infinite too by that argument.
Most home solar panels have a 10 year warranty so you want to make sure your payback period is less than 10 years.
I believe we should be doing a better job of calculating how much it costs to dispose of those panels once they are no longer working.