I like PNG's lossless compression. I feel like PNG was a really bad format back when hard drives were 100GB, but now storage is so cheap. I didn't know JPEP-XL had a lossless mode. Other than that format, I don't know of any other formats that offer lossless compression other than bitmap and TIF. You can't really use TIFs in many contexts and bitmaps have no compression at all.
> I feel like PNG was a really bad format back when hard drives were 100GB
You talk about "hard drive" space even though phones don't have hard drives (more to the point, even if you transfer photos to your desktop they will start on your phone and take up space). The iPhone 15 base model comes with 128GB storage.
Uncompressed images take up huge amounts of space and that still affects network transfer times, phone storage, cloud storage, etc.
Anyway you can shoot RAW on your phone right now, which is what you are looking for. Still, it is a niche application because of the storage required.
Because of how PNG compresses images. The high detail will lead to large images, and at that point it’d be easier to save the RAW output of the camera, offload the images, and do any compression later.