D2 "should" handle most cases OP was annoyed about. Its written in Go, so its really fast too. I never had to wait for it to finish, but that said i never produced huge diagrams that i could imagine a compiler would.

When should one use D2 vs graphviz?

I stumbled upon this link that should help: https://text-to-diagram.com/