I honestly don't know. There are advantages to both. Near me there are many modern flats (some have parking and a small outside space), right near a common with ponds, not far from woods, a lovely high street with attractive shops, supermarkets, post office, pharmacies, cafes and restaurants which has outside seating for good weather, and a real buzzy, but villagey, atmosphere. That's in a SE London borough. I'd have been happy to live in one of those as a young mother, it is far better than the terraced house with garden we had as our first house. I wouldn't mind it now I am old! Too expensive for me though but I'm OK where I am so no complaints.
People who live in smaller places such as I described tend to move on to something bigger with a reasonably sized garden and garage in time but, when you are still young-ish, it's a good idea, imo, to have less responsibility (such as 'doing up' and maintenance), and more time to enjoy life, especially with a small child and if, as I did part-time, you are working.
I know a thirty-something couple with a five and a half year old who bought a small ex-council flat two or three years ago, after renting a shoebox of a house for a few years. It's not grand, there is parking, no personal outside space, but they've made it really nice and just down the road in one direction is a beautiful meadow. In the other direction is a busy high street with all amenities. They both earn, their child goes to a lovely school and they are happy, the property is theirs and in a few years, they'll move. It's just right for now.
Nobody can make your mind up for you. You just have to weigh up the pros and cons and take a leap of faith.