This can occur if the **Ab** genotype is lethal, i.e. you won't observe individuals with a **Ab** genotype.
Allele lethality is a common mechanisms that can explain non-mendelian inheritance of a trait.
For the question of which LD metric to use, this is tricky. Under the assumption that allele lethality is indeed at play, you observed perfect haplotypes, so _D'=1_ wouldn't be incorrect. Yet the correlation coefficient is also correct in the sense that SNP A is not a perfect proxy for SNP B.