Choosing the parameter of the Fermat distance: navigating geometry and noise