I would go with this basic rule of thumb: if you have a passport for countries A and B and you are entering country A, use passport A. I’m dual national US and Ireland. Obviously I am required to use my US passport when entering US but I’d still apply my rule of thumb method there regardless. I know you are talking about layover but I think same logic applies?