MDF vs Real Wood

What happens to MDF when it gets wet? Is it a good idea to use for baseboards? My previous contractor used MDF for the baseboards and I love the concept but not the product. When MDF gets wet, it crumbles. Normally shouldn’t be a problem in a home but my house...