the junk Nivel buggies unlimited solenoid is no better than the junk solenoid you got from Amazon (and a very good chance they are the exact same solenoid. I'd bet 70% of the aftermarket parts on ebay and amazon are the Nivel products sold by different sellers, BU is Nivel). So it would not surprise me in the least if it were bad right out of the box.
Verify with a meter first to make sure, but if I were a betting man I would say you'll want to buy an OEM solenoid.
For a TXT I can't find just the solenoid itself, only the plate with the ignitor and everything. IT's expensive.
https://shop.txtsv.com/electrical-pl...embly-72909g01
However, you should be able to use this one and make it work. A solenoid is just an electromagnetic switch. You've got your 2 small terminals that are your coil. When energized, they close the main switch contacts. And the 2 big terminals that run to either side of the switch contacts. In the cheap solenoids, everything is cheap. coil is weak, the contacts are not heavy duty enough to supply the current demand and burn up. This coming directly from ezgo isn't the "TXT Solenoid" but you know the quality will be there. It says it fits 2stroke and 4 cycle marathons (the 4 cycle marathon was the same 295 engine your TXT has). and is much cheaper than the entire plate assembly.
https://shop.txtsv.com/12-volt-solen...-z-go-marathon