When refinishing may fit
Refinishing may be practical when the wood has enough usable thickness and wear is mainly at the surface. Deep damage, movement, or prior sanding can change that assessment.
When replacement may fit
Replacement can address widespread damage, major layout changes, unsuitable materials, or a desired board format that the existing floor cannot provide.