First, the HOA would need to file a LIEN against the Home Loan;
Most HOAs have not filed Liens; the reason is simple: If they file a Lien, they would lose everything when the property was Foreclosed.
This way, the HOA can pursue the Homeowner, muddy their Credit and collect the arrears.
But, if the HOA did file a Lien, and then Foreclosed on the property; the other Liens would still have to be satisfied.
So, you couldn't buy the property for just the outstanding HOA dues.
Many, many people have been trying to find get-rich-quick schemes; few have succeded.