As soon as you get into gradations of value based on things like size or perceived intelligence, things get muddy pretty quickly. For instance, we don’t value the life of a small child less than the life of a grown adult, even though the child is smaller and less “intelligent” than the adult. Similarly, we don’t value adult humans based on their intelligence.
Perhaps the metric should be capacity for suffering and our goal should be to minimize suffering. Does a human have greater capacity for suffering than a mosquito? I think there are many good reasons to think yes. Does a cow have greater capacity for suffering than a chicken? I don’t know that that is nearly as clear.