I had three engine failures last year. This is what one of the filters looked like.
Even if the oil is flushed a couple of times and the IMS bearing is replaced, other components are already damaged (even if the engine runs) from all of this debris. If you can live with this, go for it; but it would be irresponsible to sell the car to an unsuspecting buyer.