The organ in the digestive system that has a function most similar to the function of the bladder in the excretory system is the large intestine.
The large intestine is responsible for storing waste material (feces) before it is excreted, similar to how the bladder stores urine before it is expelled from the body.