I have a quite similar thought experiment for those who think they’re pacifists. They almost never are, they’re just people who like to pretend to themselves they are.
If God ordered you to kill me, would you and would that be a moral act?