If Trump loses in the primaries, someone beat him in the primaries. And that is who the nominee will be.
The question at that point will be whether Trump goes third party and hands the election to the dems.
I certainly hope he does NOT try a third party run. That would certainly hand the election to the Democrats.