gitk typically can accept all the arguments you might give to git log. So for your case, gitk -S" extremely rare "
should show just the commits (plus their immediate parent) that match.
It is equivalent to using the edit view dialog and entering your query into the "Search string" entry field.