A 58-year-old male with a 40-pack-year smoking history presents with new onset dysphagia to solids, followed by liquids, and significant unintentional weight loss over the past 3 months. He also reports occasional regurgitation of undigested food. Barium swallow shows a 'rat tail' or 'bird's beak' appearance of the distal esophagus. What is the most appropriate next step in diagnosis?
✓ Correct Answer: Option B
While the barium swallow findings suggest achalasia, a patient with a smoking history, dysphagia, and weight loss, especially at this age, has a high risk of esophageal cancer. Upper endoscopy with biopsy is crucial to rule out pseudoachalasia caused by malignancy before definitive treatment for achalasia.