I the US, the electoral college could vote for someone completely different, who might not even be part of the campaign: https://en.wikipedia.org/wiki/Faithless_elector
The chances of it happening are low, but the vote of the people might not be upheld.