Shooting a soldier is worth 10 points whereas shooting an officer is worth 20 points. So soldier A shoots the officer instead
But a really well-coded AI might actually decide that the sanctity of human life over-rides any arbitrary points system and decide to just, y'know "give peace a chance."
Nik Kelly (Ace Pilot): "Go for the pilot... planes can be replaced, men can't" {Warlord comic circa 1975}