I think, after rereading El Justo's post several times, that the AI makes unit selection based primarily on the advantages the unit offers, units available and, the cost to build the unit.
It seems to me the lesson is that for the AI to build a diversity of units, the designer must create a...