It was not the candidate. Lets remember that Marion Berry is still on the Washington City Council despite two drug busts in the mayor's office. Charlie Rangel was re-elected with 91% of the vote. Scott Brown, an eminently honest hard-working Congressman lost to Elizabeth Warren - a hard left idealogue, Linda McMahon lost in Connecticut. Obama was re-elected despite being the worst American president ever.
Qualifications do not count anymore. Liberal voters, especially minority liberal voters, will vote for the Democrat even if he is OJ Simpson.