The F-22 is far more limited in the A2G munitions, that it can carry, and has much more limited self designation capabilities.
1&2, The F-35 Blk2 compares very well to the initial F-22s in A2A and totally smokes it in A2G.
And why does it smoke the F-22 in A2G again?
They both have ground mapping radar and the ability to track surface targets. The F-35 has the EOTS and technically, the F-22 had similar tech lined up for a block upgrade. DAS is a nice to have but doesn't on it's own make the F-35 a 'smokin' A2G machine and the F-22 has better 'reach'.