Bernie Sanders would not have been a perfect candidate, not by a long shot, and honestly, his insistence to not utilize corporate sponsors would have likely lost him the presidential race in any case. Hillary lost because of the so-called scandals I mentioned before — but these were not true scandals in many cases. They were vile slander proposed by both left- and right-wing opponents. For once the left and right got together — they got together to destroy Hillary Clinton.
You just forget the media used by the various candidates to reach the electors AND the state of mind of these electors, particularly on the “progressive” side, those who were disappointed by Obama because he did not do what he had promised or announced and they kept out of the final vote. They are just starting to come back in by-elections.