Maybe "First-system" vs "Second-system syndrome" is the difference?
Apollo and Manhattan were definitely "First systems".
Bradley APC and F-35 are classic "Second systems",
suffering from second-system syndrome [1].
[1] https://en.wikipedia.org/wiki/Second_system_syndrome#The_sec...And US urgently needed to catch up in the space race - space is very efficient way to drop nuke on someone.
Of course the Germans were lucky to have lost before the bomb was ready. Otherwise instead instead of memorials at Hiroshima and Nagasaki they might be at Munich and Hamburg.
Victory over Germany wasn't a sure thing until late 1944. The fact that U.S. leadership had the foresight to make a massive investment in the Manhattan Project at a time where half of the US Navy's carriers were out of action speaks a lot of them.
If that was your goal, it is win-win, no matter if the project fails.
And that's where I'd peg the fundamental problem.
And it works with so many companies today as well. That's why I'm a big fan of Tesla and SpaceX - because they build electric cars so that there are electric cars. They build rockets so that humans can go to Mars. Many other companies in these sectors are the toilet-paper type: they develop electric cars to make money on people buying them. They develop rockets to make money on companies buying launch services. It's the difference of having money as an instrumental vs. terminal goal.