A 72-year-old man is evaluated for a 3-month history of difficulty swallowing solid foods. He has lost 4.5 kg (10.0 lb) over the last 2 months. He has a 10-year history of heartburn, which is controlled with omeprazole once daily. His other medical problems include obesity and a 35-pack-year history of cigarette smoking. His BMI before the onset of his symptoms was 30.

On physical examination, vital signs are normal; BMI is 29. The remainder of the physical examination is unremarkable.

Laboratory studies are normal.

Which of the following is the most appropriate next step in management?