I wouldn’t look at it that way. You got an R rather than a D, cuz if Kobach won, that seat was lost, and, possibly, the entire senate.
KS may have just saved the senate for Trump.
I don’t believe Kobach would’ve lost the seat. This wasn’t like the Governor’s race. Kansas has a perverse attraction to having Demonrats sit in the Governorship, but they wouldn’t dare send one to the Senate.