Key immunohistochemical markers aid in distinguishing these tumors: GISTs are typically positive for CD117 and DOG-1, while leiomyomas and leiomyosarcomas express smooth muscle actin (SMA) and desmin but lack CD117. This evidence concerns the gene ANO1 and leiomyoma.