I assume the webcams are USB?
USB is supposed to be smart enough to handle that exact situation, because each device is supposed to have a unique serial number that it reports to the host. But it's cheaper for the factory to make them all EXACTLY the same, and so the serial number ends up being the same too. That's technically a violation of the USB spec, but good luck enforcing it!
Meanwhile, some operating systems figure it out anyway, while others insist that everything does follow the spec. I don't have direct experience with Mac, but:
- Lubuntu 20.04 (released in April 2020) works just fine with 4 identical HDMI->USB capture cards. The cards themselves had some issues, and sometimes the order would change because they all start at the same time and they're literally indistinguishable, but I could still use them all just fine...after fixing the order...again.
- Ubuntu Studio 22.04 (two years later, and a slightly different team behind it) can only use 1 of the same 4 cards. Any 1 will do, but only 1. I have an internal 4-input card now, and it likes that.
- Windows "does it right" the first time, reading all of how the device reports itself, to find a good driver. But then it only looks at the VID:PID pair (a 16:16-bit vendor:product code, that does *not* include the serial number) to load that driver again. If you plug in two of the same device on Windows, even if they do have different serial numbers, it confuses that driver cache and only one ends up working.
- Linux at least uses the entire descriptor, every time, and my guess is that Mac does too, since they're both based on Unix, and Windows is not.
So, I would expect that your best possibility with two identical USB things, would be similar to #1 - working, but randomly trading places sometimes - and another likely scenario would be like #2 - only 1 of the same thing works at all, at the same time...which is exactly what you said.