MB3 165a: Should a Jew or a Gentile Desecrate Shabbos for a Sick Person (328:12-15)

Rama: if you know for sure you can accomplish the same exact results by lessening the issur involved (e.g. via shinui or asking a gentile), you should. Shechting an animal for a sick person vs. giving him non-Kosher meat.