XS and XS Max have two cameras on the back (two lenses, two sensors, one telephoto, one wide angle)
XR only has one (wide angle)
All three do Portrait mode, although XR uses its wide angle lens and computational photography for that, whereas both XSs use their two lenses (and the subtle shift between the two) with computational photography to make a bigger resolution depth map
I have a XS Max, but I'd say the XR is excellent (camera wise) and good enough for almost everyone. Let that not be your deciding factor
All three do Portrait mode, although XR uses its wide angle lens and computational photography for that, whereas both XSs use their two lenses (and the subtle shift between the two) with computational photography to make a bigger resolution depth map
I have a XS Max, but I'd say the XR is excellent (camera wise) and good enough for almost everyone. Let that not be your deciding factor