My understanding of Vietnam is that the US was defeated politically, not militarily. Afghanistan poses even less of a military threat than Vietnam.
Civilians lost (their lives). Soldiers on both lost (their lives). The MIC won.