Thanks a ton, big tax dog! This has been the best chat I've had in a long time.
Just to make sure I've got it, if the sale were direct the related person rule would apply and my claim about the tax asset being destroyed would hold, but because Mr Market is in the middle it doesn't. But as you say, if the replacement is in a non-taxable account it is, as a practical matter, destroyed.