In When Harry Met Sally... (1989), Harry and Sally do not sing a duet using a karaoke/singing machine.
Harry (Billy Crystal) attempts to sing "It Had to Be You" at a piano bar (not karaoke) — badly, drunkenly, off-key. Sally (Meg Ryan) joins in to "rescue" him, and they sing together a cappella / with piano — a spontaneous, tender moment of connection.
No machine. No duet intention. Just two people finding harmony in a messy moment — perfectly capturing the film's thesis: love isn't perfect timing; it's showing up, off-key, and staying.