Trump is no fool. This race has a lot of similarities to the 2017 special election in Alabama to replace Jeff Sessions. Trump knew damn well that Roy Moore was a disaster of a candidate whose odds of winning were slim at best.
Cornyn has no chance against the Dem.