What you say is exactly what happened. If people wanted so much not to elect Trump, they could vote for Sanders, and I am somehow sure Sanders would won the presidential elections. And in my opinion, he would be best bet for America that is shaken by many things right now. Seeing wealthy, white people, from America (mostly artists and to some extent engineers), crying all over the internet how everything is doomed and unfair is making me nausea. Guess what?
My country was destroyed by provoked civil war and NATO bombing after that. (Bill Clinton played big part in that) After that we have chosen new government, everything was going to be better, new economy, new young smart people, then our prime minister (who was the bastion of those changes and reforms) got assassinated. And after that? After that we got same shitty government that was during the 90s (right/extremists, radical party), and now they "are" pro-EU oriented. So much bullshit, country elected the party that was the worst possible choice, that nobody from circles of my family, friends and people I know didn't even dare to think of as a leading party. And it happened. And guess what, you live with it! How? Well, country is people, not one man. Sure it is bad, it hurts, but you live your life following your own internal compass, not somebody else's.