https://iea-pvps.org/wp-content/uploads/2022/11/Fact-Sheet-I...
Making and using a modern solar panel emits up to 44 grams of CO2 equivalent greenhouse gas per kWh over its lifetime as opposed to up to 1000 grams for fossil fuel generators.
That's 20x cleaner.
Sure buddy, now go make me a solar panel without using fossil fuel, including mining, refining, processing, etc.