Gas depletion in cluster galaxies depends strongly on their internal structure