People in this hypothetical protected class are placed there by others. They're already segregated and marginalized, and generally no one asks them if they want that.
We have an example of that right here from TikTok.
"I determine you're ugly but you can still come into my nightclub" is not that much better than "I determine you're ugly and you can't come into my nightclub"
People aren't in or out of a protected class. Protections for race, sex, orientation, etc apply to everyone, even straight white men. Protections for religion even apply to atheists.
The laws prohibit certain behaviors, like excluding people from nightclubs on the basis of skin color. They could easily also prohibit excluding people from nightclubs on other appearance criteria.
Of course no one can control thoughts, and some people will still feel and think hateful things, but that's true for every protected class.
We have an example of that right here from TikTok.