Protected classes exist. Libel and slander laws exist. Hate crime law exist. In every single one of those, someone is being "mean" to the other party.
Many of those laws are written in blood, since being "mean" to someone based on traits they're born with and suffering no consequences leads to people being even more "mean".
tesla broke california discrimination laws, it has nothing to do with being mean. don't do the crime, etc etc