A dark comedy from the 2000s that features a scene with a speech touching upon the Oedipus complex

I always assumed it was from Synecdoche, New York—it certainly fits the absurd, dark humor characteristic of that film (and Charlie Kaufman’s work in general). It’s also the kind of scene you could easily imagine in a Todd Solondz movie. But upon rewatching Synecdoche, New York, I was surprised to find that the scene wasn’t there.
I don’t recall the context at all. It takes place at some sort of gathering, where a person—likely a woman, though I’m not certain—delivers an impassioned speech about a boy’s relationship with his mother. It goes something like this (brace yourself for some cringe): “Sometimes you hate her guts because the wretch just keeps nagging you over some trivial nonsense. She nags and nags — so tediously, so irritably that you just want to kill her, to make the hag finally shut up. But at other moments, you don’t see a strict, controlling parent. No, you see a woman—tender, in need of love, in need of affection… And you want her; you crave her sweet flesh…”
And the protagonist is just as shocked and bewildered by this speech as the audience is.

I realize the chances of identifying this film are slim to none, but I figured I’d give it a shot. Thanks in advance.