Problem with TAA + Contact Shadows + Masked Material

Just a note. The depth buffer is probably what fixes the TAA ghosting for you.