Which Samsung Galaxy A54 versions have eSIM
Not every Samsung Galaxy A54 has eSIM: it depends on the country version you bought. Many versions sold in Europe support it, while some versions sold elsewhere don't.
The settings tell you for sure: if you can add an eSIM there, your version supports it.
How to check your phone
Dial *#06#: if an EID number appears, your phone supports eSIM. You can also look for an option to add an eSIM in the SIM or network settings.
A travel eSIM only works if your phone isn't locked to your carrier. The quickest test is a SIM card from another carrier: if it connects, the phone is unlocked.
Keep your number while you travel
With eSIM, the Samsung Galaxy A54 can use two lines at once: your main SIM stays on for calls and texts, while the travel eSIM carries your data. Choose the travel eSIM for mobile data in the SIM settings before you land.