People have co-evolved with dogs as companions for a long time. And many people have fond memories of dogs and experience with them as part of a family. This is not generally true of pigs even if their hearts are closer to ours. Even as someone who doesn't like dogs, I find the idea of harming one (even with a good reason) worse than harming a pig.