Roaming wins in a few specific situations, and knowing them saves you from defaulting to the wrong choice. Short trips are the clearest case: for anything up to about four or five days, a daily roaming pass often costs less than the hassle-adjusted price of buying, registering, and configuring a local SIM you'll barely use. Multi-country itineraries also favor roaming or a regional eSIM, since buying a new SIM at every border gets old fast.
Keeping your number reachable is the other big one. If you're expecting important calls or need SMS codes constantly and don't have a dual SIM phone, roaming keeps everything working with zero setup. Business travelers expensing the cost usually just roam for this reason. And in countries with burdensome SIM registration requirements for foreigners, roaming sidesteps the paperwork entirely.
Local SIMs win everywhere else: stays beyond a week, heavy data use, and destinations where prepaid data is cheap, which is much of Asia, Latin America, and Eastern Europe.