Suppose I grant that pigs and dogs are self-aware to some degree, and do have thoughts about things in the future. That would provide some reason for thinking it intrinsically wrong to kill them - not absolutely wrong, but perhaps quite a serious wrong. Still, there are other animals - chickens maybe, or fish - who can feel pain but don't have any self-awareness or capacity for thinking about the future. For those animals, you haven't given me any reason why painless killing would be wrong, if other animals take their place and lead an equally good life.