I eventually got it working on this Intel Mac by using one HDMI and one specific DisplayPort output on the dock so it wouldn't try to multistream it internally in the dock or whatever (can't remember what exactly it was doing). It might have involved an HDMI to DP converter. I honestly tried to purge my memory of it once I got it working.
Note that all setups worked fine with Linux without modifications. Would have likely worked fine on Windows, too, since it supports MST. Only one specific setup worked with Mac.
So no, it's not a problem of the dock, it's a problem with Apple refusing to support a standard so they can make people buy the expensive $400 docks they hawk in Apple stores. Or because they are lazy and think because they don't care, their users shouldn't either.
You will find many people complaining about Mac's multi monitor support (or lack thereof) online. They are choosing to ignore user feedback.
When it's macOS/Windows, it's someone else's fault; when it's Linux, it's Linux fault.
When you have to tinker on macOS/Windows that's just what has to be done, no biggie; when you have to tinker on Linux, it's a burden nobody should be subjected to.
People are blind to the work they've grown accustomed to. There are many things that are much, much easier on Linux than macOS or Windows.
My comment was specifically about the HP dock. I have nothing for or against Linux as I have never used it, don't know anybody who uses it, and I have no plans to use it. I am simply not qualified to comment on Linux.
I am running this Fedora installation for a few years, now. No clean install in-between, just super stable and pleasant upgrades. Everything just works for me. Zero tinkering. If there is a bug, it's usually tracked and gone in a few weeks, at most the next release 6 months off. If a HP dock doesn't work, it's HP's fault for not using open standards, certainly not a problem of Linux.