the real answer to almost every "does [identity A] belong in [identity B] spaces" question is actually just "these spaces are informal social groups and if you're cool you can hang, don't worry about it"
You can be Homer Simpson at the lesbian bar. It's fine. Don't worry about it.
I think that’s part of what makes the payoff for this joke one of the best in the series
you’re supposed to think Homer is just being his usual idiot self and is about to realize the obvious (har har har he doesn’t belong there!)
but no!
props to them for not only making the actual joke a funny misdirection, but topping it off with this (surprisingly progressive) stinger:



















