CpG density and epigenetic modification state modulate DNA mechanics, altering its intrinsic compatibility with nucleosome formation.