It is generally not a good idea to travel within lesser developed countries with two different passports.
You can go all over Europe, North America, the more advanced countries in Asia, etc. with half a dozen passports in your pocket (assuming, of course, that you are legally entitled to carry them), and no-one will give a hoot. But, when you start to visit the third-world countries, the places where they are still doing things by rote from the time the colonial powers left, you are just asking for trouble.
If you speak the languages of both places, and believe that you could justify to any official (in his or her opinion, that is) that you are legitimately entitled to carry both passports, then, maybe. But keep the unused one tucked away securely, and be very judicious about how and when you change from one to another. Don't, for example, make the change halfway between the border crossing posts of one screwed up place and another. Make the changeover in a 'normal' place, like Europe.