iPhone 8 is literally a dumb phone next to the superphone Galaxy Note 8. Even for basic consumption iPhone lacks HEVC media decoding until IOS 11 is released because Apple wanted to squeeze more profit from not licensing the codec. Something that Samsung devices have had for years. It doesn't have pen for paperless workflow, productivity and creativity. And, IOS on iPhone is still limited with regards to split screen multitasking and background multitasking. iPhone 8 is still a blown up iPod with calling capabilities.
With that said I'm disappointed the Galaxy Note 8 didn't come with Windows 10 DeX to make it a god phone that eliminates the need for a work and home PC and justify the nearly $1K price tag.
Samsung has had both HEVC and VP9 for a while, but that is typical of Samsung - they throw everything but the kitchen sink into their phones, regardless of need, as if there was no plan whatsoever - just do it because you can. Apple has always been different - they implement technology when they have a need. HEVC was added (lets face it - there was no chance that Apple was going to add VP9) now that there is a VR roadmap and an upcoming 4k AppleTV. Apple wasn't going to add a new codec to replace H.264 unless it was ubiquitous across their platform. So, why pay to license a codec you don't need yet? Wouldn't that be foolish?
As for the pen, Apple has clearly and deliberately avoided this since the inception of the iPhone as per SJ's vision. With the advent of the large iPad pro, Apple saw the viability of a pen ("pencil" in this case - so they could be different) and went all out adding the capability to the iPad. Will they change their minds about the iPhone now that they have larger screens than SJ ever planned? Maybe, but I wouldn't hold my breath. The use of a stylus with the iPhone represents a usage/interaction with the phone that goes against the very foundation of the interface model that Apple has perpetuated for the iPhone. It is obvious that they haven't added it because they couldn't - they are flat-out against it.
In terms of split screen and multitasking, again, it is a "why" - not a "can". Apple (and their user base) don't see a significant need for these features. This is particularly the case with split screen - it goes against the fundamental UX of the iPhone. As apps evolve and thus needs evolve, this may change, but Apple isn't going to add it without the need. I'm sure that, when they do, they'll hear about how they "finally copied Samsung", but again, their platform philosophy is completely different than Samsung. NFC is a good example, Apple could have added it years before they did - the chipset was there to support it, but they didn't have the Apple Pay network established yet with card processor networks and merchants and NFC payment adoption was dismal without it. Once Apple created the Apple Pay network solution, established the partnerships, devised the use of the devise account number and per-transaction updated payment token stored in secure enclave (so card numbers wouldn't be transmitted), etc. then NFC was added.
If you're saying that Apple products are inferior because they are not first with technology (although they are first with some, like x64 bit processing) or because they don't adopt bleeding-edge technology - there are plenty of alternatives. However, to say that is disingenuous as most users don't have that need and by adopting a different philosophy, Apple provides a very stable product that appeals to a very broad audience, as evident by the dominant sales of their phones.
Your bases for the superiority of the Samsung devices is akin to someone saying that Samsung Galaxy phones are inferior to the Motorola Z2 as takes snap-on accessories ("Moto Mods") that expand its functionality.