Body maturity for a baby?

Moriah
Ive heard and read a lot on how teens/young adults have a lot of complications with pregnancy or birth because their body isn't developed enough for a body
On the flip side I've heard or read ages past 40's it's hard on the momma or baby during or after because she's a little older and it's may not be that she's out of shape but her body has already done a lot in life
So is middle age or a tad younger the perfect age to get pregnant? You're thoughts? No rudeness please :)