I own a Pixel 7 Android and iPad Air for iOS and here's my 2 cents on this matter:
If budget is not an issue and you're not that tech savy, go for iOS. It's simple, everything works, and you'll have a solid device that will last you a couple of years.
On the other hand, if budget is an issue, Android is the way to go. Also if you're tech savy, and like to customize and have the latest features, Android is the way to go.
Now, buying an Android has always been complicated choice. The market is filled with devices but I usually go for Google Pixel Devices. It seems the OS itself works better on Googles own devices. The new features also greatly benefit from the tensor SOC.
I've owned in the past, Samsung Galaxy, Oneplus and HTC devices from Android. Pixels are always the devices that gives me the fizz and makes me stay on Android.
Both operating systems are fleshed out these days.
For tablet devices, iPad is the way to go. Unmatched on this segment.