Which is the worse situation to be in?
The only woman in an all-male office, definitively.
The only woman in an all-male office, but not by much.
The only man in an all-female office, definitively.
The only man in an all-female office, but not by much.
It's about equal.
We may never know....
Obviously, feel free to comment, especially if a specific definition of worse or particular non-average situation makes for a drastically different result.