If you can afford it why not both? there is no one better than the other, each os/hardware has its strengths and weaknesses. You should use whichever ecosystem floats your boat.
I was a long-time iPhone user back in the day from iPhone 1 all the way to the iPhone 6s, then switched to Android for a while and used all types of Android devices from the S4, S7 Edge, OnePlus 1 to 5, and uncountable Mi's. then decided enough of Android, I want "Privacy" (that was the new thing in town), so switched to iPhone 13 Pro Max 2 years ago, all banking and office authentication stuff is done for the iPhone, and within a year realized can't live without Android when I really want to do work stuff quickly on the move, so hunted for a good second phone, used S20, S21, finally landed on Flip4.