It's a few percent dirtier (round trip losses) but in return you can use gas plants that are 50% more efficient to charge them rather than run peaker plants.
And of course that's ignoring wind which is nearly as cheap as solar and anti-correlated with it.
Reality is extremely complicated, so realistically the exact mix of solar + fossil fuels that makes sense is going to depend on a huge number of factors and vary from region to region depending on weather, fuel costs, construction costs, transmission costs, and probably a thousand other things I haven't thought of. The best thing to do is stay out of the way of both industries and let the market sort all of that complexity out.
I would speculate the result of that is going to be a lot more renewables than currently exist, mainly due to the drastic reduction in the cost of solar and batteries that has been occurring over the last few decades, but I don't think it'll be 100% or even 90% renewables either (expect perhaps in the extremely long term). Time will tell.
If you compare the total cost of solar with just the fuel cost of fossil fuels (ignoring its CapEx and non-fuel OpEx) that swings the equation a lot.