Anfonwch hwn fel neges destun: Using real and simulated measurements of the thermal Sunyaev-Zel'dovich effect to constrain models of AGN feedback