Very interesting idea! Reminiscent of this robust learning paper[1] from 2020, where they do something even simpler: zero out elements in gradients with inconsistent signs, before averaging them.
Which seems like it would be roughly equivalent to throwing away gradients if they are inconsistent...?