Mexico City was not chosen as an ancient capital. The Aztec (Mexica) capital was Tenochtitlan, founded 1325 on an island in Lake Texcoco. It became the heart of the Triple Alliance empire, with 200,000+ residents, causeways, aqueducts, and the Great Temple.
After the 1521 siege, Cortés razed Tenochtitlan and built Mexico City atop its ruins—using its stones, layout, and labour. It became the Viceroyalty of New Spain capital, the Spanish Empire's American administrative centre.
Post-independence (1821), Mexico City remained capital. Today's Zócalo sits on Tenochtitlan's ceremonial centre; Metro excavations reveal Aztec layers daily. The ancient choice still shapes the modern metropolis.
So: Tenochtitlan was the indigenous choice; Mexico City is the colonial/modern overlay on the same sacred site.