The Age Difference Is Insignificant And Could Be As Little As A Year. These Are Both Old Cars, Ranging From 8 To 12 Years Old & Both Subarus. Condition Is The Main Consideration.
The difference in miles isn't a big deal either.
These cars are both senior citizens in "car years". That's fine. I own a couple, but they're not my daily drivers and this needs to be considered in a purchase price.
I wouldn't buy a car of that age / make, unless . . .
1. It comes with a complete, favorable, up-to-date maintenance / repair history or
2. You are a competent mechanic or
3. The car is thoroughly checked by a competent mechanic or
4. The price constitutes a "steal" with enough money left over to cover major problems.
Greasy Jack's advice on the timing belt is right on the mark (no pun).
What are you driving now ? Why not save some money and get something younger and a little less ripe or look at a make without all the infamy?