You don’t run a campaign to get the most votes nationwide. You run it to get the most votes in the states you believe are going to be the closest and that you need to win. If Trump had campaigned harder in CA and NY, he possibly could have gotten more votes there, albeit not enough to win those states, but lost some votes in battleground states and lost the election.
Read my post #10, which I intended to add to post #8.