Pixel 7, or any android in that era would definitely be slower than iPhone. ( Google Pixel itself uses mediocre SoC ) But the recent ones are catching up fast and latest Samsung is Snapdragon Elite is actually faster than iOS.
I think that is partly because Google had to optimise the hell out of its software due to slower CPU performance. And partly just Apple's iOS has fallen a lot in quality.