You may want to do some more research on phone cameras and do some real live testing yourself as that is not the case at all anymore. What you're repeating is from around 5-6 years ago. Apple emphasizes hardware, while Google prioritizes software. Sony manufactures the camera sensors for both Apple's iPhones and Google Pixel phones. Currently, Google has the software advantage in technology. That's why my daughters, who have the new iPhones, use my phone when they want the best pictures. iPhones take great photos, but Pixel's software, especially in low light, takes it to the next level. We've extensively tested high-end phones, and Apple is no longer leading the competition.
Of course plenty of Samsung parts are in the iphone ?
I'm an avid Google Pixel user, and through benchmarking, it's clear that while the iPhone remains a good phone, it has been playing catch-up for the last 3-4 years.