The same situation has been discussed multiple times on this forum.
It a fixed and solid requirement the same passport must be used for leaving the country that was used for entry. It does not matter if the person is a Thai or not. If a new passport is obtained while in the country both passport of the same nationality must be used.