They both have perks. iPhone is more polished, more or less as cutting edge, but a lot more "we've decided this is the best way to do things and there is zero alternative". Samsung S-U series is basically the best of the Android experience, with 7 years of updates etc, and huge development behind them (yes, yes, some Chinese phones have slightly better hardware specs in some areas but software is lacking/dodgy, and support not as good).
Ultimately the main issue with Samsung S series phones are the Exynos chipsets (easy enough to avoid) and the integral software bloat (though this can be said of any phone, including iPhones). Thankfully the bloat can be fixed via ADB tools connecting to PC, and this cleanup persists after updates. There's also ways to clean up the phone and background processes, phone home stuff etc. simply through the inbuilt settings and developer options. Even the launcher can be simply changed, Nova Launcher Prime is my go to for most of a decade. It's the options IMO that make the Android phones real geek phones, iPhones are certainly very good for work, but they're locked boxes, and their software locking parts to the phone so you can't repair it yourself (yes you can buy parts from Apple but it's the same price as having them repair it), even with swapped parts from an identical, new, iPhone, leaves a bitter taste in my mouth. Being able to uninstall the default browser, messaging app, even things like the camera app or Google services, and replace with superior alternatives (Signal, Opera etc.) is what makes Android great.
I'll be upgrading when the S series releases with a solid state battery, a very efficient CPU, and preferably a more durable exterior than what I have now (ceramic back S10+), they're already there with Corning Armor Glass, but it's annoying Sammy hasn't released a ceramic phone for a good while.