What does PlantUML do better than mermaid?
Last I heard, PlantUML has support for more types of diagrams, allows for themes and more customization.
Java as a dependency is not much better. It's also huge which is important if you build your diagrams in containers and/or CI/CD. It's also very slow to start. I'm always surprised when benchmarks show that Java is "fast", because it's so huge and has atrocious cold start time, that makes it very unpleasant to use for CLI utilities.