FWIW, I've done exactly this + DKIM & DMARC on a residential IP and was able to deliver to Gmail & Protonmail with no problem, but didn't test it long term. Same with a server on AWS. I'm not sure if self hosting email is an overblown problem or I've just been very lucky somehow. Obviously it's still a big issue if for ex. Outlook's spam filters happened to be slightly more sensitive and dropped my mail; I never encountered issues but eventually I just used a custom domain via Proton for peace of mind.
Not so bad for a single person. But once you start being an email provider, you get bad actors using your service to send spam emails. Which can cause all of your sending ips to blacklisted at once.
Gmail's biggest moat is that, despite being the world's biggest sender of spam, nobody can afford to block them for the spam they send, the way they can afford to block you.
It's one instance of the more general pattern of giving away free stuff to get really big, and then having unlimited power because you're really big. Some might call it enshittification, or EEE.