> an HOA can force you to paint over the mural on your garage whereas a city government could not*.
Zoning ordinances (which are the closest analogy to HOA CC&Rs) restrict all sorts of expression but have been held lawful as long as they can be characterized as a time/place/manner restriction. See https://firstamendment.mtsu.edu/article/zoning-laws/ for a pretty good case law overview.
So, dumb question / political hobby horse riding in: if neighborhood restrictions on political speech are considered a time/place/manner restriction, why doesn't that logic also foreclose the majority opinion in McCutcheon v. FEC[0]? How are campaign contribution limits not a time/place/manner restriction?
If money is speech, then me giving a million dollars to a Senator should be analogous to me with a megaphone shouting down anyone who disagrees with me until their eardrums bleed.
[0] The Supreme Court case that invalidated campaign contribution limits and foisted SuperPACs upon us.
Giving money to a person, by itself, doesn’t raise the same sort of immediate quality of life concerns (“quiet enjoyment”) as having someone shout through a megaphone into your ear.
Also, core political speech (and its financing, subject to concerns over corruption) such as electoral or issue advocacy is considered sacrosanct by the American legal system and so government prohibitions on it will receive significantly stricter scrutiny.
Zoning ordinances (which are the closest analogy to HOA CC&Rs) restrict all sorts of expression but have been held lawful as long as they can be characterized as a time/place/manner restriction. See https://firstamendment.mtsu.edu/article/zoning-laws/ for a pretty good case law overview.