yeah compassion is a trademark of humanity.
I’d still save my dog, your dog, a strangers dog first.
It is much to the credit of dogs that so many of them can and do risk their own lives for the sake of humans. In that, I think that many dogs would act in accord with my position.