As a fellow parent I find dense cities are worse. My kids are not welcome in most of the restaurants, bars, or shops - which is just as well because I couldn't afford to pay for regular family meals at any of them anyway. Even the parks are more art orientation - great for adults but no playground that my kids would enjoy. Not that it matters as 3 bedroom apartments are rare, and more than that impossible to find. They are often food deserts - it is easier for a farmer to get to a grocery store (they expect to drive but the uncontested roads are fast), you often need to drive to a grocery store as there is no option, of if there is one it is the expensive high end store not the discount supermarkets.
Note that most dense cities have within the same city limits less dense areas that look like suburbs. These are often called "inner city" they are generally affordable but because the schools are bad are not places I'd want to live. For this discussion I'm going to count them as suburbs...
It doesn't have to be like the above. I've seen dense cities around the world that are very family friendly. However not in the US.