Most/all solar panels that exist currently can not be recycled in a way that makes ecological or economical sense. Their operational lifetime is NOT "sustainable", nor is their economical lifetime.
Then there's death's per kWh, required energy storage (with its own ecological and economical issues), mining, transportation, CO2 per kWh, etc etc.
IMO nuclear is a pretty clear winner (as a continious energy source), but it's a complex analysis where important details are easily missed.