Because HISTCONTROL=ignoredups only deduplicates sequential commands, and having my own script allows specification of the blacklist in a non-redundant way between zsh and bash.
In addition, I can do it in such a way that the most recent invocation is deleted last. I can also use regexes.