If I hold the door open for a woman - I'm a sexist pig in her eyes (remember, chivarly is benevolent sexism). If I slam the door in their face by not holding the door open - I'm a sexist pig in her eyes (by being a misogynist pig who "made sure the door slammed in her face", regardless of my intent). There's no winning move because it comes down to the individuals' perspective. If they want to see sexism in my action (holding the door open vs letting it slam in their face) they will see it there and there is nothing I can do to control that.
Should I stop entering doors with woman nearby in case I fail to read their minds and know if I should hold the door open or let it slam in their face?
And no - "holding the door open for everyone" is not the answer. That's what I was already doing before I got bitched at for holding the door. Thanks to that individual - the door now slams in everyone's face.