Animal does not want (to) Pain. Pain is related to Cause. Cause is related to Kill. Kill is related to Similar. 
Distinguish is a type of Qualify. 
Animal --NotDesires--> Pain <--RelatedTo--> Cause <--RelatedTo--> Kill <--RelatedTo--> Similar 
Distinguish --IsA--> Qualify 