The F22 is superior to the F35 in almost every way (based on my conversations with AF and my reading of the stats), but more of it (i.e., the component parts) are inside the fuselage, making it stealthier and better-performing but of course more expensive.

I am making no comment here about which is the better buy for the money, just which is better.