And that's a really recent phenomenon, and least if you somehow come from the conservative "orthodox" part of society, also considering popular culture, plots of Hollywood movies in particular.
Also there is a difference in having a proper discourse and just spilling out controversial opinions. I think in a philosophical context it's possible to discuss all sorts of things, in fact that's very much where the updated - and more critical - ethics comes from.
I think the context is actually the most significant part of the debate. You'll get in trouble for saying something in one context and not in another. That's normal.
If we're having a discussion about racial differences in criminal justice and you bring up that you just read The Bell Curve and IQ differences explain the gap, I'm going to start to think you're racist. Partly because you're bringing up debunked junk science. And partly because we're talking about a systemic problem that can't be addressed with the information you're bringing to the table.
Also there is a difference in having a proper discourse and just spilling out controversial opinions. I think in a philosophical context it's possible to discuss all sorts of things, in fact that's very much where the updated - and more critical - ethics comes from.