Your privacy has much more to do with the apps you use than the phone itself. Apple doesn't collect user data like Google, but the difference between them is 1 company.
If you have an iPhone and you use Facebook, Twitter, TikTok, Microsoft Office, Google Photos/Docs, Spotify, the Dominos Pizza app, etc etc there are half a dozen companies holding your private information either way. If you want to go total lockdown, get an iPhone with a VPN and never use any social media or cloud apps, but don't pretend like having an iPhone alone is some huge change to your privacy problems.