Depends on how big your wallet is. A rebuilt engine is better than a used one, but much more expensive than a headgasket replacement.
Understand that it's unlikely you have a flat head and that it will require machining to flatten the lower face, prior to installation of the headgakset. The head has to be disassembled to do this, because there is no practical way to keep debris out of the valve area during machining. The machining may also require new valve seat cutting; you just don't know until you take it off and measure it.
For these reasons, most people would recommend at least new valve seals, because the valves have to come out to replace them, and you have them out at this point. Reputable machine shops won't reinstall old valves without reseating them. If you're on a really tight budget, it can be done, but it's not a lot of extra money, compared to the overall repair price.
So, in addition to labor to remove the head (minimally), you will have to add labor to disassemble and clean the head, labor to machine the head and grind the valves and their seats, and labor to reassemble the head, with new valve seals (included in the price and marked up), plus head reinstallation labor cost. In a high dollar market like Austin, that will absolutely run several thousand dollars.
A rebuilt engine (again, in Austin, many thousands of dollars) isn't going to have any of that (I consider a "rebuilt" engine the lower end only), so you still have t address either your head or a used one (and you wouldn't put a used head on a rebuilt block, would you?). If you can find a rebuilt engine, machined top to bottom, built with new wear parts all around, for less than the head machining cost, buy it. The installation cost of replacing the engine vs. the head would pay for itself in longevity over the next 30 years.