At the very first Democratic primary debate in October 2015, Bernie Sanders confidently assured Hillary Clinton that voters were “sick and tired of hearing about” her “damn emails.” Clearly, he was mistaken. As election day dawned some 13 months later, Clinton’s damn emails remained the defining so-called scandal of a presidential race in which her opponent was accused of sexual assault by more than a dozen women.

The controversy over the Clinton’s use of a private email server during her tenure as Secretary of State was her campaign’s Kryptonite. It was emblematic of a personal defect: her reputation for Nixonian paranoia and secrecy. But it also represented the success of a decades-long Republican campaign to discredit Clinton and her husband with any accusation that seemed sufficiently schmeary to stick.

A candidate with a more natural feel for political optics might have dodged some of the potholes that periodically juddered the Democrat’s campaign. Clinton maintains she used her home server for convenience. Many sane observers surmised it was a ploy to avoid future FOI requests for her private correspondence. Both narratives are plausible, but, if she planned to run for President, then perhaps she should have been more circumspect about her email arrangements.

She should have known how her Goldman Sachs speeches would look to an electorate suspicious of the financial establishment, particularly in a primary race against a more progressive candidate like Sanders or Elizabeth Warren. She should have been more careful about perceived conflicts of interest between her State Department work and the Clinton Foundation, which emit the whiff of entitlement and arrogance, if not of corruption.

So Clinton was an imperfect nominee – but when history records her defeat to such a manifestly unfit opponent, the footnotes must also show she was not facing Donald Trump alone. At times during this unedifying election, it seemed she was also running against Vladimir Putin, Julian Assange, Rudy Giuliani’s pro-Trump poker buddies at the FBI, ingrained sexism and a media that routinely mistook balance for objectivity.

Donald Trump's most controversial quotes Show all 14 1 /14 Donald Trump's most controversial quotes Donald Trump's most controversial quotes On Isis: "Some of the candidates, they went in and didn’t know the air conditioner didn’t work and sweated like dogs, and they didn’t know the room was too big because they didn’t have anybody there. How are they going to beat ISIS?" Getty Donald Trump's most controversial quotes On immigration: "I will build a great wall — and nobody builds walls better than me, believe me —and I’ll build them very inexpensively. I will build a great, great wall on our southern border, and I will make Mexico pay for that wall. Mark my words." Reuters Donald Trump's most controversial quotes On Free Trade: "Free trade is terrible. Free trade can be wonderful if you have smart people. But we have stupid people." PAUL J. RICHARDS | AFP | Getty Images Donald Trump's most controversial quotes On Mexicans: "When Mexico sends its people, they’re not sending their best. They’re sending people that have lots of problems. They’re bringing drugs. They’re bringing crime. They’re rapists." Getty Donald Trump's most controversial quotes On China: "I just sold an apartment for $15 million to somebody from China. Am I supposed to dislike them?... I love China. The biggest bank in the world is from China. You know where their United States headquarters is located? In this building, in Trump Tower." Getty Images Donald Trump's most controversial quotes On work: "If you're interested in 'balancing' work and pleasure, stop trying to balance them. Instead make your work more pleasurable." AP Donald Trump's most controversial quotes On success: "What separates the winners from the losers is how a person reacts to each new twist of fate." Donald Trump's most controversial quotes On life: "Everything in life is luck." AFP Donald Trump's most controversial quotes On ambition: "You have to think anyway, so why not think big?" Getty Images Donald Trump's most controversial quotes On his opponents: "Bush is totally in favour of Common Core. I don't see how he can possibly get the nomination. He's weak on immigration. He's in favour of Common Core. How the hell can you vote for this guy? You just can't do it." Reuters Donald Trump's most controversial quotes On Obamacare: "You have to be hit by a tractor, literally, a tractor, to use it, because the deductibles are so high. It's virtually useless. And remember the $5 billion web site?... I have so many web sites, I have them all over the place. I hire people, they do a web site. It costs me $3." Getty Images Donald Trump's most controversial quotes On Barack Obama: "Obama is going to be out playing golf. He might be on one of my courses. I would invite him. I have the best courses in the world. I have one right next to the White House." PA Donald Trump's most controversial quotes On himself: "Love him or hate him, Trump is a man who is certain about what he wants and sets out to get it, no holds barred. Women find his power almost as much of a turn-on as his money." Getty Images Donald Trump's most controversial quotes On America: "The American Dream is dead. But if I get elected president I will bring it back bigger and better and stronger than ever before and we will make America great again." GETTY

And then there was the Republican party establishment, which spent the years leading up to 2016 doing its absolute darndest to disqualify the likely Democratic front-runner. The House Select Committee on Benghazi was established only after seven other Congressional investigations regarding the 2012 attack on the US consulate in Libya had uncovered precisely zero culpability on the part of the then-Secretary of State.

Nevertheless, the committee spent over two years and $7m producing an 800-page report that also failed to find any evidence of Clinton's supposed wrongdoing, but that succeeding in generating an ancillary flap by publicising her use of the private email server. Mainstream Republicans had shaped an alternate reality in which Clinton was a brazen criminal who just hadn’t been caught yet. Trump convinced his supporters to take up residence in that reality.

Trump compares the US election to Brexit

By the time they came to cast their ballots, even many Democratic voters had accepted the premise that their preferred candidate was the lesser of two evils. After FBI Director James Comey announced in July that “no reasonable prosecutor” would pursue an indictment against Clinton for her sloppy handling of some classified material – “not a close call,” he added – polls found that more than half of all Americans still believed she had broken the law.

Media monitor the Tyndall Report recently calculated that, over the course of the 2016 campaign, America’s broadcast news channels had devoted more airtime to coverage of Clinton’s email than to all policy issues combined. Little wonder, then, that when Comey clumsily made public the discovery of new, potentially Clinton-related emails less than a fortnight before the election, her gaping poll lead narrowed to within the margin of error.

She had also suffered a blip in September, when forced to admit to a previously undisclosed bout of pneumonia. That gaffe played into the same preconception of Clinton as cagey and unforthcoming. In fact, hers has been the most transparent presidential campaign in history, courtesy of the Russian hackers who likely stole its chairman John Podesta’s emails – and of Wikileaks, which published them. Yet somehow Trump, a compulsive liar who refused even to release his tax returns, trounced her in the honesty polls.

For good or ill (but mostly for ill), Trump dominated coverage of the 2016 election. So it is notable that whenever Clinton took centre stage on her own terms, her fortunes waxed: her poll numbers soared after the Democratic convention, and again after each of the three televised debates, which demonstrated that she was competent, smart, wily, highly prepared and unruffled by her opponent and his increasingly brutish attacks.