Baking normal map from one UV to another

I vaguely remember having this problem, but not in every case (?), which made things very confusing.

Eventual “solution” went like this: