For one thing, YF-23 is not as maneuvarable as F-22.
From the airframe, one can deduce it was designed to be more stealthy, it does not have vector thrusting, it relies purely on the mechanical aileron, and the canted rudders stabilizer hybrid. It is also far more costly, and that's also the main reason USAF drop YF-23 because of Northrop Grumman's track record (delays, and hugely over-budget) B-2. Its far greater level of maintenance requirement, and cost of maintenance are also the third reason. Combining all the these together it's easy to see why USAF goes with F-22.
Frankly, I think YF-23 would not fit the role of air superiority fighter, but it would definitely fit the role of fighter bomber. It was even consider as such role in the recent USAF's interim bomber requirement program. But the interim bomber requirement has since been cancelled in favor of a more long-term, permament bomber replacement requirement, however, the same YF-23-derived design could possibly be adapted to fulfill this role as well.