There's a good article here showing how solar, gas, and battery storage work together in the UK:
https://electrotechrevolution.substack.com/p/renewables-allo...
The whole thing is worth reading, but this is the most interesting result:
Let's push the boundaries further and see how much solar we can get in the system without exceeding the 100% gas case’s £76/MWh. Playing with the numbers we find that installing 6.5 GW of solar and 12 GWh of battery storage alongside our 1 GW gas plant, we can get to the result plotted below...
Solar now accounts for over 70% of total generation. During the summer basically all electricity now comes from solar. This system costs the same £76/MWh as the 100% gas case. Remarkably, a combination of 1 GW of gas, 6.5 GW of solar, and 12 GWh of battery storage can achieve the same overall system cost as installing just 1 GW of gas.
The lowest-cost scenario has much less solar, but not 100% gas either:
Solar energy now accounts for over a quarter of total generation, while the total system costs £9/MWh less than just using gas.
You can modestly decarbonize a gas-driven electricity system with solar and save a modest amount of money, or keep costs constant and deeply (though not completely) decarbonize the same system with solar and batteries, even in the relatively sunlight-poor UK.