The F-35 is referred to as a jack of all trades, master of none. Designed by the JSF, the idea was to reduce costs through economy of scale. The well-aged F-22 is a superior fighter, but can no longer be produced (Lockheed Martin manufacturing facilities retooled to produce the F-35).
Apparently they do a great job of rolling off the end of a carrier....so there’s that.