The only sure way to diagnose esophageal cancer is through a biopsy.