The Fraction of cool-core clusters in X-ray versus SZ samples using Chandra observations