I think the basis of comparison is that both projects would have been better off with a more focused mission scope. In the case of the shuttle, it should have focused on launch and return of human crews and left BDRs to launch payloads. In the case of the F-35, the branch-of-service requirements were sufficiently different that individual platforms should have been developed to address each specific need.