I don't think you want an O2-sensor poke its head straight into the red hot exhaust fumes that close near the head. You'll cook them.
AFR doesn't change at 0 or 2" depth away from the headertube, so to make 'm last I would put them away from direct exhaust fumes.