Distinguishing Active Galactic Nuclei Feedback Models with the Thermal Sunyaev–Zel’dovich Effect