The organ in the excretory system that has a function similar to that of the esophagus in the digestive system is the ureter.
Both the esophagus and ureters function as conduits; the esophagus transports food from the mouth to the stomach, while the ureters carry urine from the kidneys to the bladder.