In the game, the "cursor targeting" logic is quite clear – the attack hits the maximum possible number of targets.
It's a shame. Because this is an obvious flaw that could have been fixed.
Sometimes it's not even more advantageous to attack both enemies. For example, when attacking with a dragon, the second unit might block a stronger stack from attacking.
