Is eSIM worth it in Costa Rica or should I buy a local SIM card?

For most visitors, yes. You install the eSIM from a QR code before you fly, so you're online as soon as you land at SJO (San José) or LIR (Liberia), with no queue at an airport shop and no SIM swap. Your home SIM stays in the phone for calls and texts. The ETravelSim Costa Rica eSIM is data only and has no local phone number; messaging apps such as WhatsApp keep using your usual number.