Moonlighting: Season 5, Episode 10
When Girls Collide (16 Apr. 1989)
Maddie's cousin comes to town and David is smitten by her, and it is reciprocated. They spend a lot of time together and end up in bed, which upsets Maddie as her cousin is married and she is still confused about her feelings for David.