I had both amd-ucode and intel-ucode installed in the same OS for many years, as I would occasionally move the disk between AMD and Intel-based machines (in a removable caddy).
Having both installed hasn’t caused any issues – amd-ucode basically remains dormant when in an Intel machine, as it isn’t used; and, vice versa.
I strongly recommend not doing that if it can be avoided. Every hard reset can potentially cause damage to your system.