Samsung has been the smartphone industry’s market-share leader, but iPhone 17 momentum puts Apple on track to reclaim its crown.