Automated RGB Channel Swapping

I tried it with this texture from my project.
R/G for the normal and B for the ao is correct, right?

This is how it ends up in the world normal buffer:

And this is what the shader outputs:

Seems like it is extremely sensitive to those barely visible compression artifacts.