It’s impossible to know what is the right thing to do.
Terrorists confront you with guns, making demands. You have a split second to decide if you give them a code (not sure of what they’re going to do) or let them murder your child.
Would you tell them to go ahead and kill YOUR child? I can’t imagine any parent making any other decision in such a situation.
Let’s admit it was a TERRIBLE security plan, see my #53.
No, it's not impossible: it's just not easy.