Apple fits a camera, a lidar, and god knows what other sensors on the front of a phone in a notch that's three times thinner than the one on its own laptops.
So yeah. They could have a thin bezel. They deliberately chose not to, even if it eats into the precious little space of the top menu bar.
It looks like the iPhone is about 2-3 times thicker than a MacBook lid. I'm not sure they actually have the space to put iPhone equivalent hardware above the MacBook screen.