From experience, I would suggest that you repair the original trans. As a general rule the used trans will be no better, probably worse than the one in the car.. Then after all of the modifications to get the "new" trans into the car, you find that you fixed nothing and went through a lot of work to do it..
I never had a reliable vehicle until I got smart and started doing repairs with known good parts..