I'm not able to follow your reasoning.
I must somehow obey Our Lord first. To find out how to do that, I primarily use infallible teaching of the Church. E.g. the Vatican Council. I don't believe that there can be any contradiction between the Vatican Council and my duty to obey God first. Hence, it must be possible to obey God and obey any legitimate Pope at the same time.
There is no contradiction. All of the Church's teachings are infallible whether binding or not, whether defined ex cathedra or not. This is true because Christ is the Church, hence all teachings taught by the Church cannot be anything but truth, which is to say that truth is always infallible. The pope is not the Church, Christ is the Church. The pope is only a man, and outside of when he speaks ex cathedra, can teach errors and all manner or heresy as we've seen since V2 and even before.
When the conciliar popes want us to do or believe heresies or anything that offends God, we cannot accept those teachings because if we do, we offend God. In order to not offend God in this mess, we are first of all under obedience to God, and only then under obedience to man.