Vietnam was lost because the government of the South favored the Catholic minority over the Buddhist majority, can’t win ‘hearts and minds’ like that.
But where did the “hearts and minds” doctrine come from?
Precipitously withdrawing support was as disastrous there as it was in Afghanistan.
Suggest getting a copy of Phoenix And The Birds Of Prey: The CIA's Secret Campaign to Destroy the Viet Cong. “The majority of villagers actually favored the Siagon government over the Viet Cong during the latter years of the war.”
It wasn't “hearts and minds” it was 22 Divisions of NVA.