I don't think it's quite as straight forward as you imagine. The presence of species in the immediate geographic area (or trading partners) and knowledge of them probably played a larger role in selection than preference based on genetics. I'm not sure if you're suggesting some sort of coevolution though.
Enzyme polymorphism and other differences in metabolism do change the response to many drugs. I'm sure there are other genetic factors that have been studied, and probably many more that have not.