If an employer ever asks you to resign, tell them "no".

There is no benefit to resigning unless you have another job lined up already.

Make them fire you. Get your unemployment benefits. Make sure you are legally protected in case of malfeasance. Resigning undermines all of that.

This message brought to you by AWS telling workers to return to office 5-days-a-week by commuting or relocating, or they should resign.

Again, the answer is "no, you'll have to fire me."

EDIT: To clarify, in most areas "fired" and "let go" are not legally meaningful terms and can be used interchangeably. The important term is "for cause" or not. So don't commit misconduct to get fired. Poor job performance is typically not a "for cause" reason, nor is failure to accept changes like RTO

@neatchee I fell foul of this a great many years ago. I was terrible at my job and was miserable. I had a meeting about it and it was suggested that I hand my notice in. Being young and naive I didn't realise what they were doing.

I also misunderstood, because I thought the outcome was for me to
consider it, but the next Monday I was asked where my written notice was.

Now, it was not remotely okay what they did morally speaking. However looking back I despised that job, so I don't regret going along with it.
@Bard yeah, a lot of businesses are real dirty about this kind of stuff :( This is why we gotta share what we know!