idk i mean people can make jokes about marginalized groups if it's in an accepting way, and speaks to the truth about the group beyond stereotypes and bigotry. like im a trans woman. someone could make a joke about how common it is for us to work in software, and that could be funny and ok because it's the truth, whether they themselves are a trans woman or not. a lot of us do work in software in some capacity, including me. usually people outside a group won't have that kind of nuanced insider information, so all they could do is make bigoted stereotyping jokes. it's all they have in their head about the group.
im not arguing making jokes about a marginalized group you're not a part of is a good idea, or that someone would be likely to pull it off, just saying it's possible to do it tastefully. i only object to the absolute.