To compete with solar power and batteries at today's prices, a fusion power plant would need to be 25% cheaper than a nuclear fission power plant is today. That's a stretch, especially to achieve on a massive scale in the next 25 years. And if we're looking 25 years ahead, solar will be continuing to get cheaper. By then, solar may well be cheaper than the non-nuclear side of a fission or fusion plant (plumbing, turbines, cooling system, generator). At that point, there is no hope for fission or fusion: even if the reactor were free, solar power would cost less than the parts of the plant that convert the nuclear heat into electricity. And those parts aren't getting cheaper over time; they're the same type of equipment we've been using for 120 years.
Here are the numbers:
Solar power plus storage currently costs $1,808 per kW installed according to U.S. national modeling data, which is pretty conservative. Large-scale solar projects produce power about 28% of the time, so you would need about 3.2 kW of solar+storage to produce as much power as a nuclear plant running 90% of the time. So solar plus storage today would be competitive with a nuclear plant costing 3.2 x $1,808/kW = $5,786/kW, if we ignore the cost of fuel and disposal, which are negligible with fission and even lower with fusion.
However, according to the same U.S. national modeling data, nuclear fission plants currently cost $7,777 per kW. So to compete with solar+storage today, a fusion reactor would need to be 26% cheaper than fission plants are today.
It will take time for the cost of fusion reactors to come down to this level if they ever do. But meanwhile, solar will be continuing to get even cheaper. In the last 25 years, the cost of solar power has fallen by 83% (a solar-only plant has fallen from $4,556/kW in 1996$ [$8,520 in 2022$] to $1,448/kW), and in the 25 years before that it fell about 94%. If solar+storage falls by 75% in the next 25 years, nuclear plants will need to reach $1,400/kW (25% of $5,786) to compete. That's about the same cost as a combined-cycle natural gas plant, which has roughly the same equipment as the non-nuclear side of a fission or fusion plant. So at that point, the nuclear reactor itself will need to cost $0 in order to compete with solar+storage. And if solar falls further than that, there is simply no way nuclear can compete.
One critique of this is that there may be days or seasons when there's not enough solar power to meet loads. But guess what? Nuclear has the same problem: if you build enough nuclear capacity for typical loads, you won't have enough for the peak hours. In either case, you can get around this by building extra capacity, but it gets expensive to build capacity you will only use a small fraction of the year. Either way, you'd probably want to fill in with some fossil fuels or electricity-derived fuels for the last few percent of the year. Also note that the solar costs above include storage that can move solar power from times of peak production each day to times of peak consumption. The hypothetical nuclear plants don't have that. So we would actually need to build extra nuclear plants to meet the peak load each day. If that peak is 120% of average, then nuclear will need to be 20% cheaper than I outlined above to compete with solar+storage.
So sure, maybe solar power will stop getting cheaper, and maybe fusion reactors will get incredibly cheap incredibly quickly. But would you bet on it?