In Afghanistan, Biden and US military commanders got virtually everything wrong.