Comparative study of AC susceptibility and resistivity of a superconducting YBa2Cu3O7 single crystal in a magnetic field