There will be many articles on the internal deliberations — and agony — of the Clinton team. Here is one from Politico that has her aides admitting she wasn’t a good match for the moment:

Clinton and her operatives went into the race predicting her biggest problems would be inevitability and her age, trying to succeed a two-term president of her own party. But the mood of the country surprised them. They recognized that Sanders and Trump had correctly defined the problem—addressing anger about a rigged economy and government—and that Clinton already never authentically could. Worse still, her continuing email saga and extended revelations about the Clinton Foundation connections made any anti-establishment strategy completely impossible.
So instead of answering the question of how Clinton represented change, they tried to change the question to temperament, what kind of change people wanted, what kind of America they wanted to live in. It wasn’t enough.
Using Trump as a foil and a focus, she hit on a voice and an argument for why she should actually be president that perhaps only she could have, and that she’d struggled for so long to find on her own. That wasn’t enough either.
Meanwhile, her staff harnessed all the money and support they could to out organize, first in the primaries and then in the general, grinding out victories while her opponents had movements.
None of it was enough, though all of it should have been, and likely would have been for another candidate. She couldn’t escape being the wrong candidate for the political moment.