When it came to the Vietnam War, Mr. McNamara was an early advocate of escalation but came to realize the flaws in the American approach earlier than many of his colleagues. Yet in public, he continued to defend the war.