Optical substructure and BCG offsets of Sunyaev-Zel'dovich and X-ray-selected galaxy clusters