Well, Google packages the pixel phones with their latest OS updates and pixel specific features like Gcam. By running a custom ROM you lose those. Its cameras mainly perform so well because of the big AI farms at Google.
You do miss out on some other pixel-specific features (Hold for Me for example), but camera quality should be unaffected.