Preventing Local Pitfalls in Vector Quantization via Optimal Transport