Cofounders will endure so much together that their relationship is often compared to a marriage.