I travel a lot and use Airalo. Once you setup the secondary SIM for data, you either have to manually switch between primary and secondary when you want to swap data between them, or you can let it do it automatically based on coverage - but I don't use this as it would defeat the purpose if I allowed my primary to use data roaming.
I have one installed right now actually. I normally label the sim as travel, but renamed to eSim to make it easy as possible to see.
By default with both sims on, mobile data is on Primary.
View attachment 2288326
But in the mobile data section, it's painless to switch it to the esim. You can see the auto switch option too.
View attachment 2288327
I recommend installing the esim before you travel, as it needs wifi connection to setup initially. Then when you get on the plane, deactivate data roaming on your primary sim. Go to Mobile Data and select the esim for data (and make sure the esim as data roaming on, as this is how Airalo works).
Then when you land, take the phone out of flight mode and the esim will kick in. You can then switch between the two as per above, if needed.
Airalo is good but I've had some ups and downs. Coverage in Japan was excellent, America (Alaska) was excellent, Finland was excellent, Namibia was awful and I'm currently in Denmark and in Billund it's not even worth having. Hoping it'll be better when I get to Coppenhagen.
Hope that helps!