Combine that 23ish-30ish age range with the fact that many (probably most) residents will work above the ACGME-mandated 80 hours a week for at least the first half of their residency, and I'm honestly shocked it's only ~21% of physicians that marry other physicians. Not to mention the fact that the income bump is substantial.
My fiancé is a physician and we met when she was a resident, and I'd say about 40% of all the residents I met during her residency who were in relationships were in a relationship with another physician.
I guess the choice is clear.
That said I'm a university dropout, and she did a degree in computer science, before switching to become a physician.
I know a lot of CS people locally who are married to dentists and doctors. There are a lot of encounters between doctors, but my personal experience is that doctors marrying doctors (or other medical specialists) seem to get divorced quite frequently.