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.
180 days inside Thailand in a calendar year and you automatically fall under the jurisdiction of the Thai Revenue Department. For you to pay tax you must first have assessable income, either domestic or foreign remitted. The RD doesn’t track anything (putting CRS aside) the law states it is up to you to self declare your income to them in your tax filing. No income (living off savings for example) no need to file taxes.