I did something similar for a dryer. Even identified the part that failed.
I bought the part-number equivalent part and the prongs didn't fit in the slot. I spent 45 minutes carefully filing down/snipping the prongs to fit the enclosure. Been 5? years without an issue.
Did you get the part on Amazon? I've had really bad luck with third party parts from Amazon. I always pay a bit more for OE or OEM parts now.