That’s not accurate. Germany had a strict top-down chain of military command, hence the Nuremberg trials defense of “just following orders.” After the trials, the US military was redesigned with a break above the Commanding Officer. The CO must verify the legality and constitutionality of orders before giving orders to the troops, just as it’s the responsibility of the troops to refuse to follow illegal or unconstitutional orders. CO’s have the JAGs, or Judge Advocate General Corps, who are legal advisors at the CO’s disposal to ensure they have the resources needed to remain accountable to the law and Constitution.
https://encyclopedia.ushmm.org/content/en/article/german-armed-forces-high-command