“Notwithstanding an oath you might take to a judge”
Here’s a kicker. I got a traffic ticket turning right on a red light when I wasn’t supposed to. When the prosecutor saw I had a clean record he reduced the points off from 3 to 1 and wrote the infraction as a broken headlight. Then I had to swear before a judge that I was guilty of doing that. Thing is the judge knew I was lying but that’s the way the system works in the city where I had the infraction. I suppose they are working up to lying about a lie while lying.
Tell the judge that you will plead “no contest” to THAT charge. You have not plead guilty to a charge that you are NOT guilty of but you have said that you are willing to accept the punishment for THAT charge to end the whole mess.