Replacing just the head gasket vs. complete overhaul after overheating an engine?

I would vote against an overhaul. In times past, when engines weren’t built to such a close tolerance, the “overhaul” often amounted to grinding the valves, honing the cylinder walls, fitting new piston rings, and replacing the bearings with slightly undersized bearings. With today’s engines built to verry close tolerances, a remanufactured engine is, in my opinion, the way to go if the engine needs to be replaced.