Should I buy a Thailand eSIM before I fly or a tourist SIM card at the airport?

If you only need data, the eSIM is simpler: you install it at home, skip the airport queue, need no documents and are online the moment you land. Airport tourist SIM cards come with a Thai phone number but need passport registration at the counter.