If you hang around in bigger TF2 groups and make friends, you'll see TF2 is very diverse
But by default most of them will not trust strangers
I'd put TF2 above CS2 in terms of diversity, though I've no stats to back that up. Just a gut feeling
There's plenty of all demographics in tf2.
The difference is most of these other games have incentives to not harass ppl.
As in being reported can have actual consequences if the game has ranked ladders and such
In TF2 pubs there's little incentive to be a decent person. There's rarely any consequences to your actions
So a lot of ppl avoid being harassed by not revealing their identities online
Another aspect is companies like Riot push for diversity and inclusivity within their scenes. Valorant is a great example. Apex Legends too. Valve doesn't care all that much. They'll do what is needed, but their focus has always been on developing things. Not maintaining or growing communities