Hello m0atz,
If both last pokemon faint at the same time, the user which used an self-damaging move(+moves with lifeorbs) will lose; such as Brave Bird or any move combined with Life Orb.
previously I did face this same situation and I use brave bird, but I won, they change something on this?