A comparative study of disc–planet interaction