Cyanogen NCCN and cyanoacetylene HCCCN are isoelectronic molecules, and as such, they have many similar properties. We focus on the bond cleavage in these induced by the dissociative electron attachment. In both molecules, resonant electron attachment produces CN- with very similar energy dependence. We investigate the very different dissociation dynamics, in each of the two molecules, revealed by velocity map imaging of this common fragment. Different dynamics are manifested both in the excess energy partitioning and in the angular distributions of fragments. Based on the comparison with electron energy loss spectra, which provide information about possible parent states of the resonances (both optically allowed and forbidden excited states of the neutral target), we ascribe the observed effect to the distortion of the nuclear frame during the formation of core-excited resonance in cyanoacetylene. The proposed mechanism also explains a puzzling difference in the magnitude of the CN- cross section in the two molecules which has been so far unexplained.