Rules lawyering as a concept wasn’t invented at a D&D table, but the creation of the phrase almost certainly involved sitting at one.
That’s what separates good games and groups from each other: the collective suspension of disbelief as a shared goal. When everyone is in it for themselves, it rapidly devolves into Mary Sue wish fulfillment and power gaming, and as another deleted commenter mentioned, Calvinball. When everyone is in it together, it builds on itself and each other, and you get something like Dragonlance.
https://en.wikipedia.org/wiki/Dragonlance
> Dragonlance is a shared universe created by the American fantasy writers Laura and Tracy Hickman, and expanded by Tracy Hickman and Margaret Weis under the direction of TSR, Inc. into a series of fantasy novels. The Hickmans conceived Dragonlance while driving in their car on the way to TSR for a job interview. Tracy Hickman met his future writing partner Margaret Weis at TSR, and they gathered a group of associates to play the Dungeons & Dragons role-playing game. The adventures during that game inspired a series of gaming modules, a series of novels, licensed products such as board games, and lead miniature figures.