There are many different methods to accomplish the same goal; one is not restricted to the most obvious means.
Origin: attested 1845
Synonyms: there are more ways of killing a cat than choking it with cream, there are more ways of killing a dog than hanging it