Time to re-work your thinking. When it is said, put them in their place right away. The only thing more disgusting than letting someone get away with saying things is documenting. It's cowardly if nothing is said to that person to let them know they are out of line or not being encouraging. It's hard for me not to give advice on what to say when I don't know what was said.
You don't have to be emotional, but frank and earnest. For example if they say, "I don't know why women are in tech when their minds are all over the place". You say, "you're absolutely right. Tech requires no creativity, just the simplicity of a simplistic mind. Maybe that's why men excel. What do you think?" Smile and go about your way.
I've only once had something said to me because of my gender that caught me off guard. So I don't have this problem. I get hit mostly because of my race, background, and good looks. I've learned that if you don't put them in their place, they will continually push the boundaries to see how far they can take it. It's psychological warfare, you have to earn their respect. Unfortunately, Investors often were once hard working men that are bitter because they spent all their time unmasking wealth to be happy, get a beautiful wife, nice home, fast car, etc. only to get heartbroken in the process or find that happiness was not that beautiful wife. Psychologically speaking, they wish their wife was more like you, but if she was, they feel they no longer bring value and that's why they call war upon you.
Put them in their place as politely as you can and keep moving forward. It's a dance you play until you shape them to stay on their side of the box.