The fact is that nuclear has done far better than solar in displacing coal and other fossils. France is the obvious example in Europe, and Ontario in North America, but their are many others. For example, the United Kingdom has not had a very extensive rollout of nuclear - it makes about 20% of the power, similar to the US - but that's enough to keep their CO2 emissions from electricity generation to about half those of Germany, generally speaking, despite Germany having famously built enough wind, solar, and biomass to give peak production twice over, if those sources didn't fade most of the time they were needed. The Brits are burning no coal at all in their power stations, while Germany is planning to phase it out by 2040, but keeps missing its targets.Even Ukraine, which has less than a tenth the per capita income of Germany, and can't afford to squander 200B Euro on such fickle power sources, generally manages to get lower emissions per kwh than Germany, with more than half its power from nukes. No country anywhere gets more than about ten percent of their power from solar, despite ruinous government incentives. Both Spain and Italy, fairly sunny places, had to rescind their over-generous solar rebates, ruining many of the small investors who'd put their savings into solar systems. Spain, though, still gets 20% of its power from nuclear, and has much lower emissions than Italy. Italy gets more of its power from solar than any other country, but still has high emissions, burns plenty of coal, and despite banning nuclear power on its territory, imports more nuclear power from France, Switzerland, and Slovenia than it gets from its own solar.
Japan provides a counter-example, where overreaction to the Fukushima meltdowns led to a large increase in coal and gas burning, which solar has done little to alleviate. A glance at the daily generation graph for Kyushu, the sunniest island in the Land of the Rising Sun, shows why. The island's only two still functioning nuclear plants make about half its power all the time, while solar only makes about the same at midday.
https://www.electricitymap.org/zone/JP-KY?wind=false&solar=false