Selective Enforcement of law?

I did a search here and via Google but could not find what I was looking for.

I always believed that selective enforcement is illegal and is grounds for dismissal???

Legal Dopers, what’s TSD?

TIA