And if it is indeed "bad". Then, usually something has killed it... And you need to figure this out before replacing your coil.
What kills the electronic magneto type coils, is "voltage". Stray voltage that gets sent to the kill wire terminal n the coil. So
you need to figure out what is going on. You need to test the kill wire circuit for stray voltage with the key switch, controls, all switches, steering, shifters, levers, etc....
On a normal mower setup, the engine shuts down when the key is turned to the "off" position, which means that the keyswitch
places that connection on the base of the coil to "ground" to shut down the engine. And any voltage supplied to this connection will damage and/or destroy the coil, new or used, so slapping a brand new coil won't do much if it will be destroyed soon.