That pipe is for the EGR. Usually you will need to soak it with penetrating oil for a day and add heat if needed. Not trying to be rude but if you're having difficulty taking a header off I would be questionable as to your skills taking on a head gasket job.
__________________
|