Wait until the mercy begins to fly low, pile as much damage as you can into her. Once she's eventually dead(damage drop off is a bitch) you can start to work with the pharah. Let you team know you need some help though, you alone won't have enough dmg to kill both of them quickly if they're high up.