Are we retrenching back to spec wars? Steve Jobs said it the best: products are packages of emphasis. Some things are done well, others aren't done as well, and some thing aren't even done at all.
Apple has always understood the difference between features and benefits. Samsung can claim concrete specs and so can Apple. But what's the user experience like? What are the benefits? You can give Samsung a point on some rubric for device metrics for having a superior, on-paper spec, but the sharpest, the most brilliant display alone isn't utility. For me, Apple displays are far, far, far superior to any of Samsung's display for one reason: 3D Touch. For me, it's a very sticky feature. I knew this only when I went to use another phone and tried using 3D Touch on instinct and it didn't work. Muscled memorized and acclimated. My workflow on my iPhone is pretty dependent on 3D Touch.
Samsung has to focus on specs and gimmicks because they have no software portfolio. They have no real product lineup. Just ask yourself what are the crown jewels for these companies? For Apple, undoubtedly it's the software. iOS, macOS, tvOS, watchOS, and iLife, iWork, and pro apps.
My Korean family knows exactly what I'm talking about as a few of them actually work at Samsung (marketing, UI design, paper-pushing) and they all use iPhones.