Get out ye old measuring stick and check the dimensions of your cars. Look at the specs for the brand/year of golf cart you'd be considering. The check the floor plan(s) for the house model(s) you'd be considering......and realize those aren't going to be guaranteed to be exact measurements.
Then you can decide for yourself if it'll all fit.
If you think you'll be cramped for space, find a house that has a similar sized garage with a golf cart garage as well. Very few people will ever tell you they have too much garage and/or storage space. But you'll find many people who will tell you they wished they'd have bought something with more space.
Bill