There is a difference between attacking people because of their sex or by insulting them based on their sex. First is definitively sexist, the latter is arguable.
He attacked her for asking supposedly though questions, not for being on her period. First was the reason of his attack. Latter was the means of his attack.