Germans and Japanese accepted their defeat. The Afghans have not and they never will.
No one is wanting to defeat the Afghans. But the Taliban Nazis who do not represent the Afghans need to be wiped from the face of the Earth. You are welcome to join them.
There were also no bombs falling on little German and Japanese kids and wedding parties either after their defeat and subsequent occupation. There was also no insurgency like there is in Afghanistan today which is requiring a boost in US troops to continue this war militarily. (You're right that military cannot be the only option, but in Afghanistan, it is). Your analogy is stupid.
Maybe because both Germany and Japan didn't have insurgencies after they were defeated.