The problem with those power sources–and this has been pointed out many, many times–is they don't make reliable base load power. The sun doesn't shine at night–no solar power. Winds don't blow on calm days–no wind power.
You are forced to build massive battery farms. Batteries require mining chemicals. For the scale we are talking about, you would be strip-mining the earth.
You are forced to make incredibly costly upgrades to electric grids–some of which are nearly a century old. Because the current grids can't handle the unreliable, wax-and-wane nature of solar and wind power.
You are forced to build gigantic solar panel and wind farms, destroying vast swathes of natural ecology and displacing and destroying many species.
You are forced to deal with solar panels and wind turbines at the end of life problem, especially solar panels which contain toxic chemicals which are at risk of leaching into the environment (think 'water table') unless they are properly disposed of. No one has a viable plan for proper disposal of solar panels at the scale we would have to be talking about.
And finally–the elephant in the room. The giant energy corporations just won't transition to renewable energy if they don't get a high-enough return on their investments. They want something like 12% ROI. This is extremely unlikely. They've left all their commitments to go renewable conditional so they can weasel out by saying it's not cost-effective for them. Just look at what's happening in reality: https://www.cnbc.com/2023/06/23/siemens-energy-scraps-profit...