The organ in the excretory system that has a function similar to that of the esophagus in the digestive system is the ureter.
The esophagus transports food from the mouth to the stomach, while the ureters transport urine from the kidneys to the bladder. Both serve as transport channels for substances (food and urine, respectively) to move from one organ to another.