Homer and donuts is probably a bad example.
In a show with any running gag where you expect something to happen, but does not (and it's not directly hinted or highlighted), is aversion. This is different from subversion where the situation calls for action but a different action happens, this is the absence of that action.
For example, Kramer not rushing through Jerry's door for an entire episode even though Kramer was featured strongly throughout. He never did his expected, signature behavior, so it's aversion.
This is different from him calmly, respectfully opening the door (or the door already being open and he's confused about it), which is subversion.
Someone else opening the door and him rushing out of the apartment would be inversion.