Although it appears to work on the surface, the battle results are actually calculated using the real stats after the fight. So even if you one-shot the enemy and take no damage during the battle, you’ll still lose HP when the battle ends. If you can’t actually beat the enemy, the battle will still result in a loss.