I honestly have no idea.
Also, I disagree, I don't think anyone in that realm of government would knowingly sink that much money into a project they intended to fail - they might be overly optimistic about the success, they might be trying to funnel money into their retirement but it takes clout to secure a budget like that and people had to work hard to secure it initially and keep it going - so a failure is probably going to fall under one of these categories - un-achievable, poorly managed, or wholly corrupt.
The other issue is that some fraction of defense spending seemingly can be viewed as funneling public money into a get-your-friends-rich scheme. I don't think you can find much net upside to that aspect.
Think back to Boeing's problems with the Dreamliner, where Boeing tried a new model of splitting out the design to a bunch of subcontractors and ended up with tons of problems with the integration ranging from missed design milestones due to problems with the composites to miscommunications leading to battery problems in production and so on. Those are a small taste of what happens when the engineering-management hierarchy is broken up and fractured across organizations. It becomes a lot worse when they are fractured across time.
The US famously lost it's top launch capabilities with the Saturn V and we didn't have a domestic replacement until the Falcon Heavy in 2018! By their very nature, maintaining the capabilities needed for weapons of war that can be deployed anywhere in the world is even more expensive if you want to have any sort of certainty that they'll work when the shots are fired instead of once a few years when you want to launch a satellite.
Whether or not the cost of the F35 program is an efficient way to maintain those skills is a different issue altogether that gets at the fundamental structure of our government and how money impacts politics. That's a much more difficult discussion than "can we reasonably defend ourselves in the future."
The US defense-industrial complex may not always have a high need for people who can design stealth fighters, but it definitely prefers to keep a few around in case it does suddenly need them.
Small business grants may not be a good way of meeting the same need.