The iPhone manufacturer is failing to develop competitive AI models. Of all companies, Google is providing the breakthrough.