Prefer primitives when performance and memory efficiency are crucial.
Primitives are more memory-efficient and faster because they don't involve object overhead. This is particularly important in performance-critical code, such as large arrays or intensive computations.