Hillary certainly wasn't a model candidate.  She doesn't connect well with a lot of people.  And her reserved nature makes it hard for people to like her.

But yes, the fact that she is a woman was a large part of why she lost.  Misogyny played a role in her loss.  If you can't or won't see that you're deluding yourself.