There are more efficient formats like JPEG-XL, HEIF and WebP. If you convert the RAW -> JPEG -> WebP you are losing more quality. I think iPhone uses HEIF format.

Related https://lemm.ee/post/2052205