You are a young British MI6 agent at some point in the future, sworn to serve the interests of the United Kingdom and Her Majesty.
You have been deployed in the Middle East with some success.
Soon after, your superior, who is your mentor and close friend, orders you to deploy in Hong Kong under a cover identity. Whilst in Hong Kong, your mission is to investigate the actions of the mainland Chinese government. The UK suspects that China may be drawing up plans to stage a series of incidents to decisively undermine the self-governance of Hong Kong.
While in Hong Kong, you uncover some leads which suggest foul play on the part of the Chinese government with respect to several high profile incidents in Africa, Taiwan, Hong Kong and Southeast Asia. You have no proof so you seek to investigate further; some PRC agents try to stop you but you manage to either throw them off or kill them.
You ask for permission from your superior to extend the operation to the Chinese mainland where you could work contacts to uncover the truth. You would also like to hack the Chinese and find out more (these things go beyond your mission parameters).
Your superior consults with the Queen. The PM or someone really high up gets cold feet; they decide to call off the whole thing because "things could get ugly." Despite your protests, you are told that your mission is over, not to mess with China any further, and to come home to the UK for your medals. You are expressly told NOT to hack the Chinese.
Deciding that the right thing to do is to investigate further, you proceed to step up the investigation against your instructions. You hack the Chinese government and start to investigate a few leads deep inside China. This time, your luck runs out and the Chinese government tracks you down. You attempt to fight them off but you are wounded and captured.
You wake up, tied to a chair somewhere in the Chinese west. The Chinese decide that you are a gold mine of information and intelligence and they want you to betray your country. Because you are loyal to Her Majesty, you refuse to cooperate. The Chinese decide to torture you, they do so for over five months...
Finally, they supply you ironclad proof that your superior gave you up to them shortly after finding out you had started the unauthorised investigation and hacking. The British government didn't want you to ruin a major free trade deal that was coming up (they needed the cheap Chinese labour and goods to keep political promises to the workers, all the while denouncing China's human rights abuses in public... you threatened this balance). So they calmed the Dragon down by trading you in. It was all part of some kind of a deal you will never fully understand.
...
At this point you are 100% a dead person. You estimate maybe you can take a few more days of torture (AT MOST if irl you has strong pain tolerance) before your mind snaps into oblivion. You will likely die much sooner if you do choose to continue to stay loyal to the United Kingdom (you have sworn an oath to stay loyal to the UK and to never cooperate with the enemy when captured; talking would be treason).
If you tell the Chinese government what they want or need to hear, they will likely kill you much sooner but your suffering will be over and done with and you will also have, in your own way, struck back at the nation that has betrayed you.
...
The discussion is as follows:
Assuming you are 100% dead (because you know the Chinese are either going to kill you after you tell them what they want/need to hear or they will keep torturing you for ~1 month at which point you either die or go catatonic)
In your last moments do you stay loyal to the United Kingdom or do you betray the United Kingdom because they technically stabbed you in the back?
Please keep in mind that earlier in the scenario, you chose to disobey a direct command (but out of a desire to do good).
Please keep in mind that you will be tortured further if you don't play along (indefinitely though you estimate you can AT MOST take maybe one more month but that's stretching).
Please justify your decision.