If the left and right calipers don’t squeeze onto the rotor at the same time, or exactly square-on, they can cause vibration and squealing. Visually check that the rotor is aligned with the center join line in the caliper. If it’s not, here is a simple method on how to adjust hydraulic disc brakes. Loosen the two bolts that hold the caliper to the frame until the caliper has some movement, gently squeeze the brake to pull the brake onto the rotor, and then evenly tighten the bolts while continuing to hold the brake lever.
If you swap different wheels with slightly different rotor spacing onto your bike, you may need to realign the calipers each time. And if the calipers seem to refuse to align properly no matter what you do, ask your local bike shop to re-face the mounts to ensure they are dead square on.