Because the attacker chose to break the law, the defender's priority is to uphold the safety/order/legal order. (That's the difference between proportionality vs necessity)
In your dream maybe, not in the law. Use ChatBots yourself, I heard they're yes-men. But if you repeat the same flawed arguments, don't expect a different answer from an actual human.