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. Here, ANO1 is linked to leiomyosarcoma.