If your budget allows for a rebuilt one, in theory that would be the way to go.
Just be more picky with junkyard transmissions. If you can inspect it prior to buying one, do so... pull the top cover, look for wear on all the little gear teeth and see if there are any chunks of metal in the oil...