In case it’s relevant, note that Stan saves both the initial point from which a divergent trajectory started (the sample from the previous iteration, provided that we are saving un-thinned samples), and also an additional point sampled from the divergent trajectory (the sample from the divergent iteration), which may or may not be the same as the initial point.