Every way except cost, sensor technology, network integration, and bomb load.
The F-22 has four external pylons rated at 5000lbs each whereas the F-35's six pylons are rated at 2500lbs each.