I think that religion strongly contributed to my parents getting married too young, because it was the socially acceptable way for my mom to leave the family home. It also contributed to her marriage lasting way longer than it should have, because she felt so much pressure to stay married despite being unhappy.
When I was a teen I was definitely aware that my parents fought a lot and had bouts of sleeping apart, and they ended up separating three months after my younger sister moved out.
I believe that divorce is much less likely when both parties are getting married because they want to, with full knowledge of who their partner is, preferably after living together, and when both people have the option to leave (financially and socially) but choose to stay because they want to.
As a child of divorce, I never want that for my own child, but I would be willing to do it if I felt it was in my and her best interest. Financial knowledge and independence is a key part of being able to leave an unhappy situation. Luckily I have a very strong marriage with very strong communication and shared values and goals, and we are both highly educated and affluent enough, so the odds are in our favour.