Can Mysa replace a thermostat with a Class B GFCI?

No, Mys can not replace an existing thermostat that has a built-in class B GFCI. Class B GFCIs have a 15 mA trip level. If it was replaced with Mysa, it likely will trip Mysa's internal GFCI frequently as Mysa's trip level is 5 mA.