One other factor not mentioned is that Alabama is a "straight-ticket" state. Voters can check a single box to vote the same party in all races.
A lot of votes for the Senate candidate will benefit by default to the party of the Presidential vote. If Moore were to win the primary, voters would have to really not like him to vote straight-party and then still override that on his race.
-PJ
A popular President carries a huge advantage for downballot candidates especially when "straight party ticket" voting is made easier by a single checkbox on the ballot.
A lot of voters are lazy, and just want to get it over with quickly.
Whomever gets the nomination in Alabama is going to win in a landslide, and that is true even if it's Roy Moore.