> So is the US president (Electoral College)
It has never happened, but if there once would be enough faithless electors to swing the election (choosing a different president than what people voted for) it would be a huge scandal and it would be widely condemned as undemocratic.
(Did this not happen in 2016? I understood the absolute aggregate count in the popular vote and the majority of the electoral college differed.)