In some countries where hotels register the passport/visa, you'd better show the same passport at check in as the one you used to enter the country. Otherwise you could use a different passport within the country for ID purposes (for example, to use a credit card or prove your age), although again if you're required to carry the passport or show it to police, you should show the one you used to enter.