Whether he said it her or SO it was still a mean thing to say. It's good she has you to turn to for emotional support.
I also made a poor choice with my first husband, difficult child turned out just like him. 
I do not regret it however as I learned some valuable life lessons that helped to better equip me in dealing with people.