Living with other people is annoying, but you can work to mitigate the biggest issues, and sometimes the right answer might be a HOA. Investigate the HOA before buying and talk to your potential neighbors. Many people will gladly go out to dinner/drinks if you ask and bitch about any problems there may be.
And there will always be problems; the key is determining if they'll be annoying enough for you to bypass it.
One friend years ago pointed out that he could buy a much nicer house if he spent the HOA payment on mortgage instead; and so went that way.
And yeah, the elections can change everything - and sometimes nobody cares and you can run for the HOA board and effectively take control muahahahahah.
Er, I wouldn't know anyone who would do that. Ever.
And, unlike you're principle payment (which at least is an asset), HOA payments are something you will never see any return of value on, especially since they reduce the desirability of the property in question. If you doubt this, Just ask anyone who's had an HOA, whether or not they'd rather buy a property with an HOA or one without.