AC on a DC coil will result in a vibrating buzzer. The coil will not hold in. DC on an AC coil will pull in properly but the DC voltage would have to be much less than the AC voltage because the DC resistance of the coil is much less than the AC impedance at 50 or 60hz.