Ha, I wouldn't assume so much. I'd sooner guess that information like elemental immunity simply isn't communicated to the AI decision making system, and that implementing such a thing would take up a non-negligible amount of time.

Either way,

Larian, please implement AI that recognizes elemental immunities when choosing targets!