Samsung sells more models of phones than Apple but also has to compete with several more competitors in the Android world while Apple has iOS all to itself. You can say Apple sells fewer phones but you can't ignore the fact Samsung is up against Google, Huawei, Oppo, Vivo, LG, Sony, Motorola, Nokia (HMD), HTC, ZTE, and so on. All with different price points to undercut them.
I'm actually glad Samsung won't be the market leader or the gap between them and the #2 Android OEM in Huawei has narrowed. There is complacency with being #1. It is like being up 20 pts in the first half of an NBA game. Teams start to think it is too easy and starts to relax more. Stay hungry and foolish.
Apple needs other companies to do most of the dirty work for them. Handing them recipes like custom design schematics is hard work? Then let others cook it for you?
I did my Gilligan's Island / LOST references but here goes -
Samsung = Maryann (Jealousy), The Professor (Pride)
Apple = Ginger (Lust), Mr. Howell (Greed), and Mrs. Howell (Sloth)
Marry Maryann, F Ginger, kill Mrs. Howell.
If LOST reference, Samsung is Sayid (the mechanic), Locke (the hunter), Jin (the fisherman), and recently Jack (the doctor). Apple is Charlie Pace. ~You all everybody~. A music artist but not that truly practical to be around in survival.
I don't even like Samsung phones much but they aren't a one-trick pony and they are better prepared than Apple in surviving if the smartphone market crashes. Apple stopped caring about Mac years ago. The iPod is dead. It's now iPhone or bust for them.