The esophagus is basically a tube that has the ability to contract and relax
As the most muscular organ in the gastrointestinal tract its function is to rapidly transfer the bolus of food or fluid from the upper esophageal sphincter to the lower esophageal sphincter and then to the stomach. This requires exquisite coordination of muscle contraction and relaxation. As the bolus reaches the back of the oropharynx, reflex relaxation of the UES has to occur, briefly to allow the food to enter, and then it has to close rapidly to prevent reflux.
As long as the lumen is greater than 13mms in diameter food will not get stuck. As the lumen narrows in disease to 13mms. or less dysphagia will occur.