Across the coil it is better to use a MOV of appropriate voltage rating, which will clamp any high voltage spikes to a safer level. The RC snubber will also work, but the MOV does a better voltage. Typically if your coil is a 24VAC one the MOV will be a unit between 24 and 30VAC rated.