Objective: How to give the head some extra support while sleeping?

Which of the following solutions is more sound in terms of naive physics reasoning?

Select from:
(A). It is ideal if you use a pillow.;
(B). It is ideal if you use a helmet.;
(A).