Surgery is considered when non-surgical interventions do not provide adequate relief or when the underlying cause requires surgical correction. The decision is made based on individual circumstances.