Comparative study of flux creep in Bi2Sr2CaCu2Ox and YBa2Cu3Oy single crystals