You need neither. To obtain a Thai TIN you need your passport and proof of address. For proof of address a residency certificate, a yellow book or a rental agreement will suffice.
If your country has a double taxation agreement with Thailand you won’t pay tax twice but you will pay the higher rate. Some DTAs exempt certain types of income.