It is generally best to have your surgery locally if the patient feels the best surgeon is in their area.
If you seek exceptional experience or expertise in a particular procedure, it may be necessary to travel. There are surgeons in various fields who stand out as being particularly expert. Typically they have considerable experience with a particular procedure. Often they are at or affiliated with major academic centers and have published extensively in their field. These surgeons typically derive many or even most of their patients from other states and countries.
Many patients are willing to undergo the inconvenience, expense and possibly the risk (blood clots, complications once they get home) if they feel that expertise is warranted.
The issue of whether or not it is wise to travel for surgery if the cost is much lower in another city or country is less debatable. Most surgeons would advise against traveling to a venue for the lesser cost, especially if the safeguards and safety measures are not in place.