From my experience thus far, it looks like both units "fire" at once and whichever has dealt more damage (after the random factor and armor) survives. The other possibility is that individual combat rounds contest a relatively small number of HP, or that there is a very large random factor in battles.