Huh? What HOAs are you talking about? At least in Texas, every HOA I know of is just allowed to pass rules about upkeep of a persons property (they also manage community resources). They have zero say about who can and cannot live in a given area. Also, HOA rules can never supersede any local/state/federal law/ordinance.
> Huh? What HOAs are you talking about?
http://depts.washington.edu/civilr/covenants.htm
> They have zero say about who can and cannot live in a given area.
Because they've been barred to by the Fair Housing Act of 1968.
Like many bureaucracies, they survived the obsolescence of their original purpose. They provide little beyond (sometimes) a way to arbitrate homeowner disputes.