Surgical biopsy is done if image-guided biopsy is not possible because the lesion is too close to the skin or chest wall, if the patient cannot maintain the position needed for needle biopsy, or if the patient prefers surgical biopsy.