There's an important example from algorithmic complexity theory.
The Boolean satisfiability problem (SAT) consists,
given $n$ Boolean variables $x_1, \dots, x_n$,
in asking whether we can assign truth values to these variables
in a way that makes a given Boolean expression true,
where the expression can use conjunction
($\wedge$, "and"), disjunction ($\vee$, "or"), and negation ($\neg$).
For example, the expression
$$(x_1 \wedge \neg x_2) \vee (x_2 \wedge x_3)$$
is satisfiable:
setting $x_1 = \top$, $x_2 = \bot$, $x_3 = \top$ makes it true
(where $\top$ and $\bot$ denote true and false respectively).
Note that variables can appear multiple times in the expression,
as $x_2$ does above.
In contrast, the expression
$$x_1 \wedge \neg x_1$$
is not satisfiable,
as no truth value for $x_1$ can make this true.
We can consider restricted versions of SAT.
The 2-SAT problem only considers expressions
formed by taking the conjunction of clauses,
where each clause is the disjunction
of two (possibly negated) variables.
For example:
$$(x_1 \vee x_2) \wedge (\neg x_1 \vee x_3) \wedge (x_2 \vee \neg x_3).$$
Similarly, 3-SAT restricts to expressions
where each clause is the disjunction
of three (possibly negated) variables, for example:
$$(x_1 \vee x_2 \vee x_3) \wedge (\neg x_1 \vee x_2 \vee \neg x_4) \wedge (x_2 \vee x_3 \vee x_4).$$
These two problems, while syntactically similar,
have fundamentally different relationships to the SAT problem.
Through a straightforward but clever construction,
any SAT instance can be transformed into an equivalent 3-SAT instance
by introducing auxiliary variables -- this is called a reduction.
For example, the clause $(x_1 \vee x_2 \vee x_3 \vee x_4)$
can be replaced by $(x_1 \vee x_2 \vee y) \wedge (x_3 \vee x_4 \vee \neg y)$
where $y$ is a new auxiliary variable.
No such reduction to 2-SAT exists in general.
This is already a big difference between 2 and 3,
but it actually goes a lot deeper.
We can algorithmically solve any 2-SAT instance in linear time
by reducing the problem to finding
the strongly connected components of a directed graph,
making 2-SAT a problem of the class P, i.e.,
of problems that can be algorithmically solved in polynomial time.
In contrast, 3-SAT is NP-complete.
Cook's theorem (1971) showed that every problem in NP can be reduced to SAT,
and the reduction from SAT to 3-SAT then implies that 3-SAT is also NP-complete.
Under the assumption that P≠NP,
this means that while 2-SAT can be solved efficiently,
no polynomial-time algorithm can solve 3-SAT in general.