if you get a tame like baryonyx that can outrun and tank it, then lead it out of the cave just at dawn, then it'll get tired out when the sun rises and be rather slow and weak AND be in an easy taming location :D

More Megalosaurus Taming & KO Tips