When capturing any object or overcoming any guard, you need to take absolutely everything into account:
The level of your hero, the damage dealt, the damage received, morale (yours and the enemy's), speed, etc.
Unfortunately, there isn't always enough composure and common sense.