My

and then some...
Both the F-35 and F-22 are VLO fighter aircraft, the only people who will dispute that are uneducated trolls.
For the longest time it was stated that the F-22 was/is stealthier than the F-35. F-22 is a metal marble and the F-35 is a metal golf ball. The military aviation community went into a bit of a whirl when a former USAF ACC General stated that the F-35 is stealthier than the F-22 in terms of RCS. I believe both statements can be true at once. The statement is rather broad as it doesnt say how the F-35 has an smaller RCS than F-22. I am not so niave to think that they will release certain classified information. I have stated in here in the past that I think the the F-22 has the best opitmal RCS while the F-35 has the better overall RCS.
Someone cannot simply look at an aircraft and accurately with absolute certainty judge how stealthy that aircraft is or is not.
HOWEVER someone can take observations along with publicly avialable information to draw some reasonable conclusions.
ShapeYes the F-35 is younger than the F-22 but not by much. The F-35 uses lessons learned from F-22 and incorporates them in a more efficient manner. The shaping of the F-35 compared to the F-22 is rather similar.

The F-35 and F-22 are not as dramatic in stealth design as the F-117 is from the F-22.
VisualF-35 is overall smaller than the F-22.

Due to the F-35 and F-22 having similar fuselage width and height; head on the F-22 and F-35 are very comparable to each other. The F-22 simply being the larger aircraft means it is easier to spot at different angles. One thing that people overlook is that the F-22 has a two tone camouflage pattern while the F-35 has a darker 1 color paint scheme. Think Grey Eagle versus Mudhen in this regard...

InfraredThis is always a tough subject to judge as there really isnt a standard in which to judge by. Both F-35 and F-22 have IR reducing features to them. Both have engines that allow bypass air to cool the exhaust. Both have engine nozzles designed to reduce IR signature plume (I haven't seen a honest side by side comparison between the two). Both have engines that can be hidden from certain angles. However after closer look the F-22 appears to hide its engine better than the F-35. Looking at each aircraft directly from the side, the F-22s flat triangular engine nozzles can barely be seen

compared to the F-35s more conventional larger rounder nozzle

Flight profile does make a difference. An F-22 supercruising at mach 1.5 above 50k can no doubt be seen against the colder backdrop than an F-35 at 30k cruising at 0.9 mach. However things tend to change if you want to compare the two if you want them to fly at the same speed. The F-22 only needs to use AB to get to 1.5 mach and can throttle back to hold that (testing showed F-22 was able to reach mach speeds without AB, it just takes longer). F-35 however NEEDS its afterburner to get to 1.5 mach as well to sustain it. At that point the hotter burning engine is more visible in both the IR and visual sense. If BOTH aircraft were flying 0.9 mach at 40k IR signatures could very well be comparable to each other.
SensorsStealth isnt a magic botton that makes someone invisible. Just because someone has a ghillie suite doesn't make them a sniper. It is using tactics to avoid detection. While the F-22's own sensors are nothing to sneeze at, the F-22 primarily plays in the radio/radar spectrum. F-35 however has always been stated to have the most comprehensive sensor suite of any fighter aircraft out there. The F-35s sensors allows the aircraft to avoid detection longer than F-22. However I would wager because of the F-22's eye watering kinematics; if the F-22 was to be detected and know about it, the F-22 can quickly reposition itself back into the enemy's blind spot.
Design and purposeThe intended purpose of the F-22 and F-35 aircraft weighed heavily on their design. The F-22 is a 5th generation air superiority/dominance fighter (get over it
Corsair). The F-35 is a multi-role aircraft meant to tackle advance IADS. Their individual purpose drove how each aircraft was going to tackle their intended targets/threats as well how they were going to be stealthy in what aspects. One design is more appropriate than the other for a given task/mission set.