>>13553985It’s called the Hawk-Dove game in evolutionary game theory, though it only accounts for the “whether to fight to take resources” and not the idea that forces can combine to greater than the sum of their parts.
In general, the stable state where the worst case (dying) is worse than the best case (extra resources) is that the population is mostly but not entirely nonaggressive.
Beaten by both is the “assessor”, that checks the strength of the opponent and only attacks if they are weaker.