In the context of the comment you're defending, it isn't clear whether it is a joke.
Also, making such "jokes" in contexts like these, still carry a hateful message. If you don't mean it and don't want to shit on people like that, then simply don't do it. It doesn't get better to defend it as a "joke" as it is not clear what the true intentions are. As such "jokes" can also form opinions / views about some topic, it is reckless not to mind the hazards created by such "jokes". Furthermore, stuff like this is often seen in Motte-and-bailey fallacies.
What's next? Laughing about all the Jews who were gased by Nazis? Or all the vicitims in Ukraine who get fucked in the ass by Russia?
In the context of my comment it was an ironic reference to the #NotAllMen hashtag wich, as I understood it, was often used by men downplaying the concerns of women and relativising common problems and fears they encounter by saying that not all men are that way. While technically true, it undermined the severity of the issues. As it was the case wih the original commenter here, who meanwhile deleted his comment or got it deleted. Their original comment reminded me of the hashtag.
After a few downvotes I added the irony flag, as I got the impression that my ironic use of the hashtag was not obvious to some readers here.