You simply
cannot connect two USB devices/peripherals together with a USB B <> B cable. Not only because USB B <> B cables don't exist, but because two devices/peripherals have no way to talk to one another:
- A USB game controller can't talk directly with a printer
- A USB hard drive can't talk directly with a Strymon Iridium
- A QWERTY keyboard can't talk directly with an HX Stomp
- A MIDI keyboard can't talk directly with an audio interface
Emphasis mine. It doesn't work like that. None of this works like that.
In the end, a device is a device and a host is a host, and never the twain shall meet. The notion that USB just magically sends and receives MIDI like bi-directional MIDI DIN cables... has never been a thing.
The problem is that again, one couldn't connect both a Mac/PC and MIDI peripheral at the same time; plus, USB C data/power management is a much bigger mess when a port can switch between device and host duties. You also don't want two USB C jacks, as it makes it way too easy to connect to the wrong port. If you want to communicate with something that has a USB B port (like a MIDI controller)
but no MIDI DIN ports, you really want a USB A port on your product. And that USB A hardware needs to support class-compliant MIDI and your development team needs to take the time to program your product to be a class-compliant MIDI
host, which is far from simple and
three galaxies away from "I bet it just works; you need the right cable."
IMHO, that's a lot of cost and effort to simply avoid using MIDI DIN cables or supporting MIDI controllers that only have USB.