The most accurate statement comparing cell membranes and cell walls is:
B. Cell membranes function mostly as selectively permeable gatekeepers, while cell walls function mainly as support systems.
This statement correctly describes the primary functions of cell membranes and cell walls. Cell membranes regulate what enters and exits the cell, allowing for selective permeability, while cell walls provide structural support and protection, particularly in plant cells.