I honestly think iphone is better but samsung is better because Samsung modify android to give you the so namely Samsung experience, this is why their updates take so long. They come with edge lighting notifications, which is when a small coloured border appears on your screen and a small minimalistic bar at the top tells you what notification you have. It's really amazing. They come with an advanced game mode with screen recording built in and a floating action button. They come with more camera modes and can have a better camera. I say can because in terms of detail they are on par with Apple but Apple and Samsung digitally process their images differently do the end result can look better depending on preference, but you can also take pictures in its RAW mode. They have an edge screen, touchWiz, one handed mode, Bixby (which is better than people give credit, you can do anything you could normally navigate to on your phone eg. Asking Bixby to open YouTube and go to your highlights and play the top video at 4k), their phones have better and larger displays, their phones charge much faster than Apple's and come with a fast charger adaptor, their phones have larger batteries, their phones will not limit your battery or throttle your phones unless the battery is under 15%. Oh yeah they also have the note series with the professional S pen
There are also a lot of ways that Apple is better but Samsung modify Android and produce better specific phones where it matters, we don't need better processors, appart from marketing benchmarks they have no day to day use unless you're daily importing and exporting videos. People desire better cameras, displays and features. Something which Apple hasn't focused on in 2 years of keynotes.
(i got all of this info from a weird site called Quora)