While its competitors burn cash on AI, Apple is taking its usual slow and steady approach. And it's paying off.