This is patently incorrect. Wife switched from iphone 13 mini to samsung s24, and airpods pro 2nd gen immediately started behaving extremely annoyingly to the point of becoming completely useless for any serious use and she just gave them away to her sister which still is on apple, although she loved them before.
Literally all other earpieces work flawlessly with that phone including dirt cheap chinese stuff, apart from apple.
Now somebody could come and claim multi trillion company couldnt just nail that pesky bluetooth protocol well, but everybody else can do it better than them, including 15 bucks products. Its all by design. They clearly dont need hardware revenue to have products who can compete on open market, they need their closed ecosystem revenue, hence these dirty practices. There is hopefully a billion or ten lawsuit in the making by courts with balls, ie EU.
All the downvotes in the world won't change above.