These two phones are close enough on hardware that specification tables no longer decide the outcome. Both take excellent photographs, both last a day, both will receive software updates for years. The real decision is about software behaviour, ecosystem and what you already own.
Where they genuinely differ is philosophy. Apple's imaging is conservative and consistent; Google's is computational and opinionated, often producing a more striking image from a harder scene. Apple's advantage compounds if you own a Mac, an iPad or a Watch; Google's advantage is assistant and search integration plus generally lower street pricing.
Below is the honest split, followed by a comparison table and the questions people actually ask before switching platforms.