The Aztecs had made so many enemies from slavery and sacrificing children in their rise to power, the Spanish had a broad choice of allies. Even if the Aztecs had instead sacrificed those 20k warriors on Spanish swords instead of the priest's knives, they still would have lost.