I use mailgun to send automated alerts from our home network backup processes and security cameras.
When sending to a Gmail account, there is sometimes up to a 2 hour delay before the mail arrives, though usually it's within a few minutes.
Mail sent to a Fastmail account always arrives almost immediately.
MG does some kind of prioritizing based on the domain when using their free account. It's obviously an anti-spam measure. They might also have some kind of "warm-up" feature where if you send enough email with a valid FROM and TO address then they queue it faster, IDK. Not sure if they do the same thing with their paid plans.