Tim cook did his job well. He increase stock value over and over again for the delight of the shareholders. He also increased the moat as large as possible.
If you want a better product you will not get it from a publicly traded company.
Sure you may claim that a bad product is bad for a company in the long term and it is. However short term stock increases are far more desirable than long term stability and growth.
No one can say if it was "as large as possible." It's at least plausible he left money on the table with some missed opportunities.
For example: handing over the semi-pro video creator space to YouTube. Apple already a thriving podcast ecosystem, but failed to capitalise on it. There was a real opportunity for vertical integration with Apple selling hardware, targeted content creation software (a CapCut-a-like version of FCP), and access to a distribution network.
Also, home automation and security. Cameras, switches, maybe even routers with local backup. Not sold as devices, but as high quality services with obvious benefits that happen to run on specific hardware.
AI: there was the opportunity to develop Siri into an agentic assistant well before anyone else got there.
Cook's slant was more towards chasing high-end Veblen lifestyle status - cars, watches, premium computers and phones - and less towards social marketing and less shiny but useful consumer devices.
Also a couple of big investments that might have been better spent elsewhere e.g. Apple TV+ and the Apple Car. The vision pro and the audible gasp the audience let out when the price was revealed was a particular low point. Having owned that device for 14 days before returning it I wish they had left the screen off the front, reduced the weight by 25% and done something about the price. What good is a developer device that is hard to make, expensive and flashy.
If you want a better product you will not get it from a publicly traded company.
Sure you may claim that a bad product is bad for a company in the long term and it is. However short term stock increases are far more desirable than long term stability and growth.