A donor is chosen based on HLA (Human Leukocyte Antigen) matching to ensure compatibility. Donors can be family members or unrelated matches.