Is that a guess based on hunches or a hypothesis?
Strictly frontal aspect wise, assuming roughly equal RAM capabilities (which, considering the maturity of Chinese material science, shouldn't be anything far-fetched), what are your reasonings to assume that?
The J-20 had 11 years' worth of technological advancements over the F-22. Composites is one of the biggest examples.
Ignoring the first LRIP blocks of J-20s with AL-31s, the J-20 (not A) in production now shouldn't be assumed as less stealthy than the Raptor. DSIs are almost guaranteed to be stealthier than caret intakes, and the usage of composites, RAM, etc. make this a reasonable assumption IMO.
And on the topic or radars... I'm pretty sure the J-20, even currently, uses GaN AESAs. And considering the J-20 has a radar radome that's quite bigger than the Raptor and can thus cram more T/R modules in it, I can't say the F-22 would have an edge here.