Except for when it breaks on FreeBSD or macOS. The most portable utility nowadays for desktop systems is ex, actually (because some Linux distros don’t include ed).
It is still much more usable than ed. At least, it makes it easier to debug your script.
For a single edition script (one shell command), yeah, I'd say there is no large difference.