Let's give credit where it's due: Hillary Clinton ran a hell of a race, a historic campaign. And she did it in a media climate that didn't help her much. (I refer not only to the routine misogyny, but also to the beltway media's dislike of anyone named Clinton, whether their suit has a zipper or a fly. And I don't think the "inevitability" coverage she got until December was a net advantage for her, since that's the traditional set-up of one of the media's favorite games: Nail the Frontrunner.)
That being said, it should also be pointed out that Senator Clinton ran a state-of-the-art campaign--except it was the state of the art in the mid-1990s. The choice of advisors, fundraising strategy, campaign organizational structure, electoral strategy, netroots strategy, media relations, messaging--it all added up to a campaign that would have totally kicked Bob Dole's ass in 1996.