If God commanded you to sacrifice your child, would you? The answer is simple: God wouldn’t command that. And if you still want to consider the scenario as a per impossibile claim, you can do that with any moral system, not just divine command theories of ethics.