The question doesn't predispose that one consider sex synonymous with gender.
The question was never the problem. It was always how Kirk chose to respond after the answer.
The problem was the answer was self-referential, e.g. "anyone who identifies as a woman"