Ultimately you’re voting for the nominee from a particular party rather than the individual as a person. If one were elected and died before inauguration the party will be able to put someone else in via the electoral college and the same electors. If after Congress counts the votes, then the VP becomes president.