Not sure how you conclude that Trump did better than another candidate would have done. Republicans at all levels did well (and have done very well since Obama took office). Other Republican candidates tended to outpeform Trump. In particular, Rubio massively outperformed Trump in Florida.