If you swapped the suspect 2-wire non-programmable with the known good 2-wire programmable from the bathroom and it works properly, there is no other conclusion. The 2-wire non-programmable is broken.
Conventional thermostats are based on separate temperature sensor and heater devices with means for feedback between them. But in some recent EDN design ideas (DIs) we’ve seen thermostat designs that ...