iserith
Magic Wordsmith
It deals with skills. If you look at the skills section of the PHB, you'll see that knowing something about the inhabitants of the planes(Demons, Devils, etc.) is part of the Arcana skill. Knowing something about animals falls under the Nature skill. And so on. It's pretty clear from the skills section that knowledge of things like creatures is an ability check, not something that the player can simply have his PC know just because he knows or wants his PC to know.
Also, the whole having your PC know things that you know just because you as the player want to know it would also apply to every other skill regarding knowledge. If you the player knows a piece of history, you can do an end around the ability check system and just know it. But that's not how ability checks work. There's no part of that system that says, "The DM will decide the DC or you can just have your PC know it if you want."
The rules for ability checks in the PHB are that the DM only calls for a roll if the outcome is in doubt. So the two examples I gave above where you auto succeed and auto fail fall under the "no doubt" portion. If the outcome is in doubt, the DM can call for a roll. The DMG further clarifies by saying that you should only roll if the outcome has meaning(or something like that).
A player having the character state that an NPC is a lich is saying what the character thinks which is entirely in the domain of the player's role per the rules (barring some kind of magical compulsion or the like). There's nothing to test here with game mechanics because the player hasn't stated an action that the DM can adjudicate. Intelligence checks resolve the outcome of a task to recall lore or make deductions when the outcome is uncertain and there's a meaningful consequence for failure. That's not what is going on when a player has a character act based on the player's knowledge. There is no rules-prescribed prohibitions on action declarations because of the limitations of a character's knowledge. A character doesn't have to know that fire's useful against trolls to hit it with a lit torch.
There is no support for the "no metagaming" position in the D&D 5e rules. It's a table rule at the social contract level and, in my view, an identity for many groups. One might be able to find support for this position in other games, but not this one.
The section you guys brought up regarding metagaming isn't really talking about the sort of metagaming we use here as "Bringing player knowledge into the game that the PC wouldn't have." Rather it's more along the lines of...
DM: As you crest the top of the mountain you see a valley far below. At the bottom of the valley you see 5 ancient chromatic dragons. One of each color, standing in a circle. They seem to be engaged in a heated discussion. One of them glances up your way, and then returns to the argument. You hear something like, "....internet...," but you can't be sure.
Player: Well, the DM wouldn't put an encounter into the game that we can't handle, so they're probably shapeshifters or illusions or something. Let's go get em!!
That's the sort of metagaming that the DMG is speaking about. It's talking about the game as a game, rather than bringing in knowledge that the PCs wouldn't have.
Which is a clue that the game doesn't care about the sort of "metagaming" some people are talking about in this thread. It's being dragged into this game by some folks from other games that did care about it. And that's fine - people can play how they want, obviously. But I think it's worth examining where this thinking comes from and whether it's actually useful in the context of this game.