It is kinda subverted in Death Note.
Two Machiavellian rivals team up together and on the surface they’re chasing another enemy, but in reality they both know that it’s all a farce and they’re both the real enemy. Light infiltrates an investigation on him with fake friendship but real ego :keikaku:
When they find out who Light was and what he did, one of his own ‘friends’ immediately killed him