It depends largely on how you would want to use your camera.
1. If you take mostly videos, or taking pictures in strange positions, contemplate using external flash, prefers stereo sounds, want faster downloads, more in-built picture enhancements, then the S5.
2. If you take mainly groups, needs longer zoom functions, prefer using EVF, like idiot-proof menus and super lightweight, then the FZ18.