mastodon isnt a single server.. some servers on mastodon absolutely are communist hell holes, others are not.
Gab is a single server and I've seen the number of explicit racists there to be the majority of the people I've seen. That said it may simply be because they generally responded to me. I didnt go around looking for them.
I will say this, considering they let nazi accounts roam free, yet mass block other accounts that speak out negatively against GAB (my own GAB account included) tells me all I need to know about their practices as a server personally.