both points are true.
Medscape reference:
"Gummatous syphilis is characterized by granulomatous lesions, called gummas, which are characterized by a center of necrotic tissue with a rubbery texture. Gummas principally form in the liver, bones, and testes but may affect any organ. Histological examination shows palisaded macrophages and fibroblasts, as well as plasma cells surrounding the margins. Gummas may break down and form ulcers, eventually becoming fibrotic. Treponemes are rarely visualized or recovered from these lesions."
and treponemes are commonly found in chancres thats why we do dark field microscopy on the exudate