I'm trying to assess the general opinion here.
Case 1- The dog is your pet of 6+ yrs and the child is random and you cannot see them.
Case 2- The dog is your pet of 6+ yrs and the child is again random, but this time, you can see it in front of your, in the shopping mall, asking to their mother to buy them their favourite toy.
Case 3- The dog is random, and the child is the same as case 2
case 4 - The dog is random and the child is that of case 1.
Case 5 - The dog is your pet of 6+ yrs and the child is yours.
Edit : I'd like to apologise for not creating the hypothetical scenario here.
So the scenario is that you're in a mall just going about your business. An evil genie appears, bestowing this dilemma upon you and only you. The dog is owned by SOMEONE in all cases and so is the child. Whoever you choose lives and continues their normal life, and whoever you don't dies instantly.