Since you're comparing it to nuclear, I'm assuming you mean electricity production here, not energy production?
It's always worth remembering that electricity only accounts for ~20% of global energy consumption (in the US it's closer to 33%).
I suspect people confuse these two because in a residential context electricity plays a huge part of our energy usage, but as a whole it's a smaller part of total energy usage than most people imagine.
But any serious discussion of renewable energy should be careful not to make this very significant error.
The Lawrence Livermore National Laboratory publishes a great diagram of US energy use: https://flowcharts.llnl.gov/sites/flowcharts/files/2024-12/e...
The 1 megajoule of useful electricity is also ultimately dissipated as low grade heat, but it can do work first (like generating light, or pumping water uphill).