These terms point to different parts of an experience. A person can have more than one of them at the same time.
Dissociation
Dissociation can involve feeling cut off from yourself or the world around you. It can also include gaps in memory. If a room feels unreal after a shock, that is different from being aware of a worry and putting it aside to finish a task.
Some researchers use the word compartmentalization for a kind of dissociation where parts of memory or control feel out of reach. That use is narrower than the everyday idea. Each term covers more than one kind of experience. A diagnosis of dissociative identity disorder (DID) requires a full assessment.
Suppression
Suppression is a choice to put a thought or feeling out of mind or hold back its expression. You might hold back tears during a meeting. You are compartmentalizing when you keep the work meeting and grief in separate parts of your day. Those two ways of coping can overlap.
Repression
In psychoanalytic theory, repression means keeping something painful out of awareness without making that choice. For example, the theory might suggest that a painful wish stays out of awareness. Compartmentalization can leave both feelings in reach, even if you rarely think about them together.
Emotional avoidance
Emotional avoidance means steering away from upsetting feelings or reminders. Think of changing the subject each time a friend asks about a loss. Taking a break and coming back to that talk later is a different pattern.
Splitting
One use of splitting is seeing someone as all good or all bad and finding it hard to hold a mixed view. For example, a friend goes from “always kind” to “never there for me” after one letdown. Compartmentalization is about how thoughts or feelings are kept apart.
Cognitive dissonance
Cognitive dissonance is the strain you may feel when an action clashes with a belief. If you value rest but keep working late, you might feel that strain. Keeping those parts of life apart can make the clash less clear.