iPhones (and probably Androids too) support up to 10 eSIMs with 2 active at the same time, if I'm not mistaken. And you can buy data eSIMs before even leaving the country in an app like Airalo.
Yes, it's much easier to buy ahead of time in the app and have it automatically activate upon arrival, instead of having to find a kiosk in the airport.