It is not a simple thing unfortunately. I had an iPhone and traded it for my Pixel 7 Pro. I have an iPad and Mac. I have family that use iPhones. In order to accurately talk to them you have to turn iMessages off on your iPhone and deregister your phone number from Apple website. Then you will get texts from your family who use iPhones on your Pixel. If you simply swap sim cards you will not get text messages from your family or you may get some but not others.
This means that while you use your Pixel your texts will not show up on your iPad or Mac. You will obviously be limited on the Pixel with no airdrop or FaceTime.
Apple purposely makes it difficult for you to use an Android phone with their services and other iPhone users. It really pisses me off. You can go on a browser and sync Google messages on your iPad and Mac. It just isn't as seamless as iMessage.
If you use a windows PC or Samsung tablet you can sync your messages with both devices. On the PC it is link to Windows and on the tablet a qr code.
Supposedly the next release of iOS 16.3 should fix a lot of bugs currently present in iOS. I was not happy with iOS on my iPhone 13 Pro Max. I had to sell my iPhone because it was locked to T-Mobile who wouldn't unlock it not because I owed money but because I bought it from a third party, Best Buy. So I could either trade in my iPhone and get a 14 Pro Max for close to $500 or get the Pixel as an even trade.
It is a hassle at first switching but I have found work around and once I deregister iMessages texts between my family and myself have been fine. I lose FaceTime and airdrop on the phone but have the iPad for those occasions I need one of those two apps.
So switching between the two phones is doable but a bit of a hassle to go back and forth.