Paki is a shortened version of Pakistani. It's still offensive (in context). Yid is offensive in context and I expect the Jewish County fans on here could explain why much better than I would be able to.
Also 'x is worse than y' does not then make y okay (even if x is indeed worse).
The logic of your argument is that anything is fine if everyone can claim discrimination at some point in history.