The big problem with renewable energy is variability in the generation of power. This is also the big advantage of coal, natural gas, and nuclear. The power is generated consistently, day or night.
What the grid needs, and does not have now on a massive scale, is the ability to store energy for future use. This is the Holy Grail for energy.
Currently pumped hydro and compressed air energy storage are the primary ways of storing power. Batteries just aren’t there yet. Remember, these have to be grid-scale.
Once we have stored energy on a massive scale, then the need for dirty power becomes much less. For example, a wind farm could use excess energy during the day to pump compressed air into underground chambers where it is released as needed at night to power turbines. This means the power supply becomes steady and reliable. Then we won’t need nuclear power nearly as much.