Ranked voting would solve this issue. I have never read any critique of it that I found convincing. It exists at state and municipal levels. But until the big states switch it won't change the problem. If swing states adopted it, along with proportional allocation of electoral votes (a couple states do this now) it would definitely change strategies for the better.
The effect is that you can't be the most extreme version of your party and ignore moderates in the hope there are more people that hate the other corrupt extremist, because the moderate candidates will get ranked higher than you by both sides of the artificial duopoly.
In that world, the sensational nature of the media works to uncover sneaky extremists so you can rank all the boring candidates higher, or least higher than the extremist you don't secretly agree with. Either way the boring candidates win.
Someone once wrote that the best kings produce the fewest pages in history books.
Edit: there will be a fortune ready for the person that has a generative model in hand to let candidates change their name to something minimally scary.