Both Sodium and OptiFine serve the same purpose of optimizing Minecraft for your PC. While both these mods make the gameplay smoother, Sodium has the edge over OptiFine if you want to focus solely on increasing your FPS. However, many people still prefer OptiFine simply due to better configuration options for shaders and other visual settings.