Trump isn't God.
As far as the Bible goes, deliberately killing a child when it can be avoided violates the sixth commandment.
.
You’re confused.
The first commandment over-rides misinterpretation of the others.
Obeying Yehova’s demand that a nation be completely annihilated, including their livestock does not violate any commandment.