you're totally right. they actually did. insects and beans are traditional foods in Mexico. and corn and beans are complementary protein sources.
what's more, the technical process of transforming untreated corn meal into a food humans can digest and extract B vitamins from is one of the many triumphs of ancient Mesoamerican cuisine. they figured out how to do all of this centuries before the Spanish arrived, and i would guess, before human sacrifice attained a massive scale in the Aztec era.
i find it very difficult to believe that cannibalism was nutritionally necessary.