Agreed with the OP, RE4 is that good. To the people saying TLOU is better, no it doesn't have the amazing pacing of RE4 nor the enemy or gun variety.
They excel in different areas, it just depends on what you prioritise, prefer or enjoy more.
RE4 has bosses, and like you said better weapon and enemy variety, but TLOU has a lot better movement and controls, more combat variety, better enemy AI, a much better narrative and characters, on the whole better combat arena design (allowing for quicker flanking, mobility, verticality, pathways, cover etc, which is necessary given the enemies are generally also far smarter, quicker, more mobile and more proficient than your average RE zombie), and so on.
Combat gameplay wise, RE4 often seems almost a bit simplistic and shooter gallery like in comparison to TLOU, since so much of the time waves of zombies are just slowly and pretty much mindlessly plodding towards you. In comparison TLOU's combat engagements tend to be a bit more dynamic, with far more available diversity in approach (stealth, contextual melee, full on rambo, real time on the fly crafting that keeps you in the fight, shivs, environmental objects etc).
I think both games are a 10/10, but for me TLOU is the better overall game, with slightly more complex, diverse or sophisticated gameplay and controls.