Apple has lagged behind its big-tech peers, but it has the resources to catch up and potentially overtake the competition.