The organ in the digestive system that has a function most similar to the function of the bladder in the excretory system is the stomach.
Both the stomach and the bladder serve as storage organs. The stomach stores food before it is digested, while the bladder stores urine before it is excreted.