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 the absorption of water and the compaction of waste into feces before it is eliminated from the body, similar to how the bladder stores urine until it is ready to be excreted.