The limits of Google's strategy of pairing old camera hardware with excellent software have been shown in a series of camera tests published by DxOMark. There may well be some flaws in DxOMark's methodology, but it seems that Google should now move on from the 12 MP IMX363 camera that it has been using steadfastly for years.
https://www.notebookcheck.net/The-Google-Pixel-5-fails-to-impress-in-camera-tests.501483.0.html