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 has a tendency to flood, the backyard is higher than the foundation. I have animals which have a strange tendency to knock over their water bowl, hence water in all the places you don’t want water and MDF not the best...