Transmission Failure in 2005 Mini Cooper - Repair or Replace?

A mini is a BMW, isn’t it? According to some here, that’s supposedly a really reliable car…

Seriously, could you perhaps buy one that was totalled and have its transmission swapped out?
Edit: just noticed GSR’s comment that hit it on the nose.