Not talking about RWAs in India, but, since you bring it up, there's been plenty of coverage of an upswing in racism in India, too.
> I don't think one can say racism is the major function,
Its fairly well-documented as both a historical motivation and a current function.
> especially in other societies that have HOA-like systems.
I’m not talking about “other societies” and “HOA likr systems”.
> [...] they tend to be more representative of the wants and needs of the development and inhabitants they govern.
And when those residents were selected for racism by advertising the development with (for older developments) direct and (for newer ones) coded appeals to racism, guess what one of the prominent shared wants is?
In my experience, HOAs hurt mostly retirees who don't have the same cash flow as recent purchasers of homes. Again, in my experience, newcomers to the States seem to be the most vocal in asserting the bylaws, presumably to ensure their investment keeps increasing its value. In second place come the people who are considering selling their house and also want to maximize value.
I don't think one can say racism is the major function, especially in other societies that have HOA-like systems. Admittedly they tend to be the lighter version of HOAs and not the type that act like Disney Village dictatorships who find any excuse to fine residents. If the HOA is made up of residents (rather than administered by an outside party) they tend to be more representative of the wants and needs of the development and inhabitants they govern.