Unlearning in- vs. out-of-distribution data in LLMs under gradient-based method