Yeah, if you can't keep up with the main pack, you're training, not racing. If you've already hit the wall, finishing may result in over training.
If you're in a chase group that will never catch back on, might as well stick with it and help each other in, and finish your training ride.
There's not one answer.