There are several android phones that compete with the iphone 13 pro performance wise, while running a much less optimized os.
Likewise in the desktop world, the single core performance of the M1 is on par with top of the line chips, and M2 will be the same, and intel and amd work fine on linux.
Apples decision to keep a locked box has nothing to do with performance, solely to do with keeping people in the ecosystem for revenue.