Michael Buckner/Variety via Getty Images

Tim Cook's final earnings report as Apple CEO is today after the closing bell. The exec — who has held the role since August 2011 — leaves his Apple post in a familiar position: a dominant force crushing the stock market.Apple shares are up more than 2,400% since Cook took the reins, a period that's seen the tech giant add $4.6 trillion in market cap, becoming the world's first trillion-dollar company along the way.Meanwhile, Apple is up 24% so far in 2026, trouncing the Magnificent 7 (flat) and S&P 500 (+7%). Much of that separation has come in the month of July, amid a reckoning of sorts for AI spending and the companies relying upon it.The period of Mag 7 weakness has coincided with heightened sensitivity over exorbitant capex-spending plans and potential AI-demand slowdowns. Some areas, like the particularly vulnerable chipmaker sector, were plunged into bear markets.Investors instead prioritized certainty: gigantic buybacks, strong cash flow, and pricing power — all attributes possessed by Apple. The shift is clear: Investors finally appreciate a company that doesn't need to explain a gigantic AI budget.That all sets up an Apple earnings report that sees the company stepping into a new role, at least in the eyes of investors: an escape hatch from the AI trade.Put differently, for much of the past two years, investors have favored whichever companies are most central to the AI-infrastructure buildout. In July, they started rewarding Apple because it isn't.