Since I called attention to that terrible Herbie theme song with the terrible "nyah-nyah-nyah" theme, I should note that one of my favorite musical-theatre songs also uses that motif at the beginning (and runs it in counterpoint through the whole number). But when composer/lyricist Harold Rome wrote "Certain Individuals" for the musical Wish You Were Here, he actually had a point in doing that: the song has the secondary female lead, Sheila Bond, and the female chorus making fun of the heroine (Patricia Marand) for being so obviously in love.
Rome is a very underrated figure in musical theatre history. Most of the great Broadway songwriters were urban and Jewish, but they rarely wrote songs, let alone whole shows, about the urban Jewish experience. Rome, whose first hit was the union-sponsored revue Pins and Needles, wrote a lot of songs about urban life and New Deal politics (one of his biggest hit songs was called "Franklin D. Roosevelt Jones"), and worked a lot of "ethnic" expressions into his lyrics. And while he wrote musicals that followed the post-Rodgers-and-Hammerstein fashion for shows set in the past (like Fanny, based on Marcel Pagnol's films, and Destry Rides Again, a musical Western), his best scores were for shows about New York Jewish characters: I Can Get It For You Wholesale, which introduced Barbra Streisand, and Wish You Were Here, based on Arthur Kober's play about a singles' resort in the Catskills.