I think Apple is one of the few companies that tries to maintain a level of focus that Google simply does not have. Just compare the number of cancelled Google products/services vs Apple.
I think the difference in the number of canceled projects is that Apple cancels them internally before customers see them. Google seems to like to try things out more to see if it might work, whereas at Apple they have to clearly see how this is going to work out before they let it out.
Apple certainly has a list of failed projects/products, but they certainly try to keep the public ones to a minimum.
An interesting counter-example to this would be the satellite communications that they have just released. If you look into the details, Apple is covering the costs for the emergency feature for the first 2 years (unclear to me if that is first two years of phone ownership, or of the program). And there was some talk in the keynote about expanding this to non-emergency calls (e.g.: look at this beautiful photo from the middle of nowhere). This looks to me like Apple is not sure what they are going to do with this system, but are seeing how it plays out.
They secured exclusive licensing rights to GPT3 and its spinoffs. And yes, they also have an arrangement where MS provides funding and resources (Azure compute) in exchange for such licensing rights (see GitHub Copilot).