The organ in the digestive system that has a function most similar to that of the bladder in the excretory system is the large intestine.
The large intestine is involved in the absorption of water and the formation and storage of waste material (feces) before it is excreted, similar to how the bladder stores urine before it is excreted from the body.