It pays to shop. I cant answer the question, you have to.
Is it worth it to you to put head gaskets in it?
175,000 miles, 10 years old... 4900 bucks, tax , title , transfer of tags, repairs, all just to drive ???
How do the brakes look? Are the ball joints OK? Tires? AC?
Look at the big picture. Sounds like impulse buying to me.