Why does Hamlet tell Ophelia to, "Get thee to a nunery!"

A.) He is afraid what will happen if she remains in Elsinore (the castle).
B.) He is aware of his own sin and believes the only true answer for it is to promote the church.
C.) He believes all men do evil things and women who conceive bring even more corrupt people into the world.
D.) He believes all good and noble people would desire to belong to the clergy. He uses his statement to test her character.