A .22 rifle is, I think the most useful firearm that you could own. I have 6 .22 rifles 5 .22 handguns, and I can think of at least several more in each category that I would like.
Both rifles you are looking at age good. Marlin is a fine old company that makes more rifles than any other company in the US. The Ruger name speaks for itself.
I have an old Marlin M-2 .22 auto that I have had sense I was 14 or 15. It was the most accurate .22 that I owned until very recently. The Marlin takes down for easy transport. and should be a very good value for the money.
About 2 years ago I bought a Butler Creek heavy target barrel, a fiberglass stock, and a 3 to 9 variable scope for my Ruger 10/22. The Ruger is a bigger rifle, and does not take down easily, and mine was not especially accurate as before I did the upgrade. There are several advantages to the Ruger, the first is the ability to swap barrels, fast and easy, no special tools, no gunsmith. There are a host of aftermarket products available for it. Look in Brownell's or Cabella's catalog and you will get an idea. Extra or replacement magazines are easy to find as well.
My 10/22 with the new barrel and stock will shoot a 10 shot group that I can cover with a dime at 50 yards with ammunition that it likes.
Lately, I find that I am a lot more interested in old second or third hand guns than I am in New pieces. The used gun racks are always my first stop in each of the gun shops I regularly haunt. Keep you eyes and your mind open and you will surprised what you will see.
Mike