The whirlpool kills a portion of a random stack. This can be either a defensive stack or an offensive stack. And it's not always possible to mirror such losses.
When a hero enters the whirlpool, he loses 50% rounded up of the creatures in his army's weakest stack. The weakness is determined by the total health of the stacks.
In short, it always kills a single, weak stack. If one exists.