Apple has surpassed Samsung for the first time in 13 years as the top smartphone brand worldwide in market share and unit sales for 2023.