While I am not a woman, I have faced discrimination before. (I'm autistic, socially awkward, hearing impaired, and a few other strikes against me) This has been my strategy:
- ACT like no discrimination exists.
- PLAN as if it is everywhere.
That means you have to play defensively. Document everything, make sure your behavior is above board, don't take any bait.
You want to make it clear to the casual observer that something isn't right.
Gee, Swarley is so hard working, always in early, gets her projects in ahead of schedule, participates in every chat, is genial and tries to get along. Why is she being ostricised?
Remember HR IS NOT YOUR FRIEND. HR will act to protect the company, not you. If it's 6 coworkers vs you, then right or wrong, HR sees YOU as the problem.
If it gets to the point where you have to go into HR and have a mountain of evidence sufficient to make a case to an employment lawyer, then it's a different matter altogether.
The reason my approach works is because it works whether your judgment is right or wrong on this matter.
If you step up your game as I've said, and the problem stops. You win.
If you step up your game, and the problem continues, you have a solid case for an employment attorney, and therefore for HR.
If the time comes to make your move, you want to appear reasonable, and have documentation that proves that you've approached your coworkers, been above board in all your dealings, are a good worker, so there is no logical reason why you should be having any trouble.
The better you are, the more blatant any discrimination will be. That's your tactic.