Simpler than that:
INSERT IGNORE ...
That's all you need. Don't need the ON DUPLICATE KEY stuff if you just want to ignore the duplication error.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.