They both use heat. But stirling converts mechanically, whereas STEM converts energy to electricity «directly».