Two checks, both on the phone itself, and both under a minute. Do them before you buy any travel eSIM.
Rather than trust a model list, check the phone itself. It is quicker and it is always right.
iPhone: Settings → General → About. Scroll down. If there is an EID number, the phone supports eSIM.
Android: Settings → About phone, and look for EID. Or open the phone dialler, type *#06# and see whether an EID appears with the IMEI.
No EID anywhere means no eSIM. Some phones sold in mainland China have two physical SIM slots instead; the EID check tells you either way.
iPhone: Settings → General → About, and look at Carrier Lock. "No SIM restrictions" means it is unlocked.
Android: the setting varies by maker. If you bought the phone outright, or have finished paying for it, it is almost always unlocked. If you are not sure, your carrier can tell you, and unlock it, usually for free.
A travel eSIM does not replace your SIM. It is added as a second line, so your number keeps working for calls and texts while the eSIM carries your data. Most phones can store several eSIMs and use two lines at once.
Choose your destination on the coverage board and install the plan at home on wifi before you fly. If you buy and then find the phone cannot take it, an eSIM that is not installed can be refunded in full within 30 days of buying. Help covers installing, and what to do if there is no data.