GOP Senate seat in Kansas is safe.
Kobach, who Trump endorsed in 2018, defeated in primary. You're right, rejecting the most Trumpian choice was the smart move for KS GOP.
Trump did not endorse either candidate since there was no advantage to do so. Kobach threatened to turn off the GOP base and put Kansas in jeopardy of losing what has been a solid GOP seat in the Senate since the 1930’s.
I didn't say Trump endorsed anyone in that race, in 2020. But the key to this is that Kobach, the most Trumpian candidate in mindset and ethical character, and the one formerly endorsed by Trump in 2018, was, as you said, more likely to turn off the GOP base.
Yay. We got there. Red's got a little tiny piece of the reality of Trumpism there! Woohoo!