Well - it's a little bit more complicated than that. The F-22 is still considered the best in the world, but its mission is much different than the F-35. The F-35 has multiple missions (including attack) and multiple forms. The F-35 can carry external weapons as well as internally. The F-22 is a pure fighter, although I've seen it represented in movies where they show it with a ground attack capability. In the end they're supposed to work as a team, and I don't believe that anyone really thinks about it as how good a single aircraft would be compared to another. Ask Astro14. He would describe missions and not simply aircraft, such as when fighters would escort electronic warfare aircraft.
As far as how stealthy, the usual phrase is "radar cross signature" although it depends on which direction. I heard that some stealth aircraft designs concentrate on that from the front, while others concentrate on all aspects. This paper published by the Naval Postgraduate School
According to November 2005 reports, the US Air Force states that the F-22 has the lowest RCS of any manned aircraft in the USAF inventory, with a frontal RCS of 0.0001~0.0002 sqm, marble sized in frontal aspect. According to these reports, the F-35 is said to have an RCS equal to a metal golf ball, about 0.0015 sqm, which is about 5 to 10 times greater than the minimal frontal RCS of F/A-22. The F-35 has a lower RCS than the F-117 and is comparable to the B- 2, which was half that of the older F-117. Other reports claim that the F-35 is said to have an smaller RCS headon than the F-22, but from all other angles the F-35 RCS is greater. By comparison, the RCS of the Mig-29 is about 5m2.
Much has been improved between the design of the F-22 and the F-35. The F-35 doors for landing gear and equipment, as well as control surface, all have straight lines. The F-35 does not require "saw tooth" openings to divert RF energy. One reason the openings on the F-35 are straight lines is reported to be embedded electrical wires near the edges which interfere with RF signals. The F-35 RAM is thicker, more durable, less expensive and, being manufactured to tighter tolerances compared to that of the F-22. The tighter tolerances means less radar signal can penetrate openings and reflect back to its source. The newer RAM is more effective against lower frequency radars, and maintenance should cost about a tenth that of the F-22 or B-2. Some forms of RAM have electrical plates or layers within the layers of carbon composites.