The issue with the camera in newer iphones is that it uses an Ai engine to smooth things and add details that aren’t there.
If you want reference tier photos for documenting family history, modern mirrorless is better. DSLR from 10-15 years ago is also still great in all but the most challenging light conditions, where you could simply use a flash.