The F-35 suffered from each branch wanting the plane to be something different. The same airframe has to support radically different internals and flight characteristics on the A, B, and C models. The program had a myriad of issues but if each branch had just developed its own the cost would have been overall lower.