Keep working and keep collecting that paycheck. Don’t resign just because they’re forcing RTO. If they want to push you out, make them go through the formal process, including a PIP if it comes to that. Managers hate dealing with PIPs because they’re awkward, time-consuming, and require documentation. Use that time to your advantage.
Resigning voluntarily can jeopardize your eligibility for unemployment benefits, so don’t make it easy for them. In the meantime, start applying for other jobs, guys.