I was in your position less than a year ago. Rebuild/replace a motor or sell.
Depending on options, rebuild /replace was going to run $5,000 to $10,000,
and I could not swallow selling the car to someone knowing that there was a problem with the motor.
Long story short, I traded my '97 Cobra...