eSIM has quietly become the best first move for most travelers: if your phone supports it and is carrier-unlocked, you can buy a data plan for your destination online before departure, install it at home over wifi, and land already connected.
Physical SIMs still win on price for longer stays in many countries. The airport arrival hall kiosks are convenient and legitimate in most places, though slightly pricier than official carrier shops in town. Bring your passport, since many countries legally require ID registration for SIM activation, and check your phone is unlocked before you travel, because that discovery at the kiosk is painful.
Pre-departure setup worth doing regardless: download offline maps and the local language pack for your translator, install the destination's dominant ride-hailing and messaging apps while you have easy verification access, and switch your home SIM's two-factor codes to an authenticator app, since SMS to your home number may not arrive once the local SIM is in.