>>but presumably it'd have been several orders of magnitude cheaper to just directly invest in that tech instead of building a weapon.
True, but virtually nobody would be motivated by just directly investing on the tech instead of an exciting fighter jet.