What you want to do is buy a property that has at one time been sold under a tax lien ,,, tax sales quash all existing contracts including all powers of a HOA to control. This is nearly universal in the US as local governments want full control with no strings attached when they take a property.
There’s almost always a bank with a mortgage on the line ~ the tax lein problem is rare in these HOA communities.