For notmuch accounts aerc gives the option to set exclude-tags
which correctly removes messages from the result set.
However, one is supposed to view these matching messages if explicitely mention tag:the-excluded-tag
in the query. This however always results in "argument was ignored" message and no messages listed.