Or as an alternative question: is it less moral to do this experiment than eating the pig? Because society seems to be by far and large be okay with eating pigs.
Fair enough, but then it would be hypocritical to take advantage of pretty much any modern medicine. All drugs and procedures were tested on animals, as well as biological research.