The M1 (at 5 years since release) is probably at the tail end of the macOS upgrade cycle. Might get another major macOS might not it's hard to say.
Unless there's a very significant price difference, I'd say the M2 may be a better choice for longevity.
Both can support Apple Intelligence so that should not be a concern either way and both can do wiring and essays just fine along with presentations and other similarly light work loads.
As mentioned you will want at least 16GB of RAM. Storage may not be as important if you can take an external drive with you. But even I struggled with 256GB on a M1 and I'm super frugal with my storage usage. Get at least 512GB.
Or a fairly large portable external drive to compensate and be prepared to access files from there for the most part.
Also, as mentioned, can't stress enough, when buying used, beware of sales that seem to good to be true, and also verify that the Mac has been erased and prepared for sale adequately. If it's sitting at the desktop, then walk away it is probably not ready for us and highly likely still locked to the previous owners account which will not be able to to be removed. It must be at the Hello screen waiting to be setup as if it had just been taken out of the box the first time. Any other screen when turned on, is a red flag.