As a vet who has never married or had children and has worked full-time her entire life, including as a partner in a practice for ten years, I find that comment astoundingly offensive.
Back in the late 1960s when I was fixing up to go to vet college my riding instructor said to me, "they won't want you because you'll get married." Even aged 16 I had a feeling that might not be going to happen, and I was terrified. If I wasn't going to get married I needed a good career to support myself throughout my life on a single income, and if I was going to be barred from such a career on these grounds, what the hell was I going to do?
Fortunately the Dean of the Faculty in the late 1960s was more enlightened. Our class was the first to have approximately equal numbers of male and female students. He actually said to us that he'd decided the profession couldn't go on ignoring half the talent in the population. Over my career I've had, and still have, many talented and committed female colleagues who work full-time - including some with several children.
There is an issue now that the balance of the profession is tipping massively to the female side. It's not just that there is a higher percentage of "wastage" of trained graduates because of this, but the smaller percentage of colleagues who see a partership as part of their career path. But this has to be tackled sensibly and rationally, not by flinging out insults that stick to committed and hard-working women graduates who more than pull their weight.
You can't predict where an individual's career path will take them. A young man who graduated with me was killed in a car crash the following year. That's about as big a waste of an education as you can get. Some graduates will fall by the wayside for any number of reasons. The percentage of women graduates who take time out or work part time is higher on average than that of male graduates doing similar. It's something to take into account.
But if I ever find myself in the same room as this joker, he better watch out.