Let's say I'm currently building a world wonder, and through my spy I find out a rival civ is also building the same wonder, and are likely to complete it before me, even if I try to rush mine in a variety of ways.
So getting the wonder is nearly hopeless. Should I just immediately cancel the construction and divert my production elsewhere, or should I keep constructing it for the gold reward? And if the answer is "depends", then under what conditions should I choose one way or the other?