HOA rules and city regulations have a lot of overlap, but there are some important differences, such as that HOA rules can never override city ordinances.