Optifine, imo, is better because sodium uses fabric loader. I don't know much about fabric loader but it doesn't allow you to use mods. Optifine on the other hand uses forge so you can use optifine to render your minecraft settings and use mods to run at a better performance. .