Both drugs inhibit the hedgehog pathway, which is a pathway that affects response to radiation therapy and chemotherapy in some tumors and is abnormally mutated in most patients with basal cell carcinoma.