Answer
The experiment would not work with a homogeneous magnetic field.
Work Step by Step
A magnetic dipole does not feel a net force in a uniform magnetic field. We aim for the spin up and spin down states to be deflected in different directions, and for that to happen, the magnetic field must be inhomogeneous.