fix the head gasket or replace the engine? on 1998 Nissan Altima

which is cheaper? My car has 102,663 miles on it and it ran great until it started overheating, is it the head gasket? my mechanic is telling me to junk it but I really dont want to and I dont want to get a new car and be have to deal with car payments.

Asked by for the 1998 Nissan Altima
2 answers
would be cheaper to replace gasket but if you can pick up a low mileage used engine I would go that route.
HAVE YOUR MECH GIVE YOU AN EST BOTH WAYS. HEAD GASKETS ARE CHEAPER UNLESS THE HEAD HAS CRACKS. YOU KNOW HOW YOU HAVE TAKEN CARE OF YOUR CAR,BUT YOU HAVE NO IDEA HOW THE USED ENG WAS TAKEN CARE OF