I don't know about other people but I consider my pet family so I'd find a way to save both. When my family adopts a dog it becomes a part of our family, it becomes my brother/sister or whenever I adopt a dog of my own which I hope to do someday it'll become my dog son/daughter. They're not just pet animals to me they become family.
For the sake of the thread though if it came down to only one choice, my human family member or my dog family member, I'd choose to save my human family member. As much as I love animals there comes a point in life where humans take priority. Cases like this is an example. If it were one of my human friends I'd also pick my human friend over my dog. Humans are unique you'll never find 2 of the same person. Dogs as much as I love them are mostly all the same with a few minor differences in behavior. All bark at nothing, chase squirrels and rabbits, eat random things off the floor, and can be taught the same tricks and commands and if treated right will love you all the same. You can't replace humans but dogs or cats, however, you can.