One important difference here is that people are free to discriminate on almost any grounds except a narrow set that have proven to be irrational and historically devastating. Race, gender, religion, and a few other things depending on jurisdiction.
The same rules apply to YouTube. If they had been arbitrarily banning the accounts of black people, they would have lost.