Mermaid self-looping in diagrams looking weird

Unfortunately, it’s Mermaid: Self-edges/loops look very awkward in state diagrams · Issue #6336 · mermaid-js/mermaid · GitHub

Also unfortunate, we can’t declare ELK the way you tried: Mermaid: Support Elk layout system in core Obsidian

I haven’t tried it yet, but someone released a plugin that enables ELK in Obsidian’s Mermaid: https://community.obsidian.md/plugins/mermaid-elk-renderer. And there might be more plugins.