I vote townhouse. If you have children you don’t want a long commute keeping you away from them during their waking hours.
But then again… I abhor long commutes… used to commute from downtown to oceanside back in the 80’s… traffic wasn’t an issue back then… but time and distance were. I swore I’d never have a commute longer than 30 minutes again. A promise I’ve kept for myself.