It's a gross situation all around, but given it was near landing, going to the lav was obviously not an option and could have subjected her to criminal penalties.
If possible, and if I had ever flown with a baby (which I did not), I think I would probably try to tough it out - but I can't say categorically this woman took the worst of all possible options, because I don't know how bad the diaper situation was.