Physics focuses on concepts and self-understanding. The reason why boys learn physics better is that boys have more opportunities to play and see more phenomena than girls.
The memory of formulas is necessary for science, whether it is mathematics or physics.