>>36017657Pokemon follow the orders of a trainer they respect. If they don't respect you, they won't follow your orders. What it takes to earn that respect, it varies from Pokemon to Pokemon. Some are easier to earn the trust of than others, just like people. Stating the obvious first.
Now, if you have a Pokemon that doesn't follow your orders, realistically speaking, any reasonable trainer would release them. A Pokemon's primary job with a trainer is to fight. If a Pokemon isn't doing that, there's no point in keeping it. Unlike in the games, you actually have to feed and spend money to take care of Pokemon. A useless Pokemon that just eats your money and does nothing, no trainer is going to keep that. And if a Pokemon doesn't respect their trainers, literally nothing stops them from just running away. Absolutely nothing.
With all that established, these are all the general requirements for a scenario like the one your presented: a Pokemon that doesn't respect its trainer yet hasn't left him, a Trainer that hasn't abandoning this useless waste of money, another trainer that wants this "useless waste of money", and the aforementioned Pokemon actually wanting to work with that Trainer. If even one of these conditions isn't met, the scenario you presented wouldn't take place.
But if all of these conditions are met, yes, the Pokemon will "cheat" on you. It'd be a really rare situation, but it's what it is.