Yes, this, and two other related AI tactical spellcasting issues immediately spring to mind:
Units with ranged fire attacks targeting injured units to pick them off - effective in principle, not so much if the injured unit is a fire elemental.
Casting of questionable buffs - haven't seen this one so much recently, but there was a point when the AI champion's response to seeing 3 units of knights bearing down on him would be to stand still and cast Protection Against Fire - usually after casting more useful spells like Stoneskin/Gift of Iron, but still a waste.
(These are both examples of enemy AI rather than autoplay, since I don't have much experienceof using the latter, but still kind of on-topic).