B. The genes expressed within the cells.
The differentiation of unspecialized (or stem) cells into specific cell types is primarily controlled by the genes that are expressed within those cells. Different combinations of gene expression lead to the development of specific cellular functions and characteristics.