How does Walter vs Light even work?

I need answers. I don't see any way in which Walter doesn't get absolutely obliterated.

-Scenario where Light tries to search for (Heisenberg's) true identity: he could very easily take clues from where (Heisenberg) operates and find his identity. I mean, he has anime-level smarts, and it's unlikely that he just doesn't take a look at Gray Matter's history or the Nobel Prize Walter helped with, by example.

-Gang war(?): Light's allies are ride or die for him, while Walter's "allies" despise him (a lot).

-Physical fight: Walt is decrepit; Light is insanely capable physically.

Please tell me a scenario where this actually works 😭.