iPhone XR camera: Here’s how good we think it'll be
https://www.cnet.com/news/iphone-xr-camera-heres-how-good-we-think-itll-be-vs-xs/
That looks like plenty of common ground. Both phones also share the same computational photography pipeline, using the A12 Bionic chip and the image signal processor.
But the big difference is that the XS and XS Max have an additional 12-megapixel f2.4 camera at the back, which is used for 2x optical zoom. It's also an important part of portrait mode, as that telephoto lens helps create a depth map that determines where your subject is in relation to the background.