You are mistaking a map for the territory.
The first thing to realize is that computers don't work on numbers. Computers work on bits and volts. We abstract that work on volts into working on bits, and we abstract the work on bits to be working on numbers.
Most modern computers use IEEE floating point numbers, not because that is the only thing that they can use, but because IEEE floating point numbers are useful to solve certain kinds of problems. So special purpose hardware to make working with IEEE floating point numbers is added to computers, and they can do calculations using them that are extremely fast.
IEEE floating point numbers represent values as an integer times 2 to the power of another integer, essentially. Both the integer and the power are fixed precision -- they have a max and min size.
When you represent the square root of 3 (or even 0.1) as an IEEE floating point number, you end up with an approximation of the square root of 3. There is some error.
As this error is small, and by design each operation has a reasonably random rounding error at the scales we typically work with, you a likely to get decent approximations of the result of most calculations. But not all calculations.
In other domains, instead of IEEE floating point numbers computers use integers with an upper bound, or integers with no upper bound. These are all common ways to do math on a computer.
There is nothing forcing computers to use IEEE floating point values, or integers, or whatever. Computers are capable of doing symbolic manipulation.
They can represent $x^2=2$ as exactly that -- a string of characters, or tokenize it and turn it into a representation of the algebraic structure. They can do various things we teach high school and undergraduate students to do. They can go through everything you described a "human mathematician" doing to simplify the equation.
They can even do this faster than human mathematicians can do quite often.
This area is called "computer algebra".
In my experience, the hard part is usually explaining the problem to the computer. When you see $x^2=-2$ you probably assume we are working in the reals or the complex numbers, but not the quaternions, constructive reals, $\mathbb{Z}_2$ or something more exotic.
$x^2=2$ in $\mathbb{Z}_2$ means $x=0$. In $\mathbb{R}$ it is unsolvable. In $\mathbb{C}$ it is plus or minus the $i \sqrt{2}$. Etc.
Going further, the constructive reals are a way of axiomitizing real numbers that basically relies on algorithms and proofs.
In it, $\sqrt{2}$ "becomes" a series of values ${v_i}$ and a (provably correct) algorithm that takes any $\epsilon \in \mathbb{Q}$ that is greater than zero, and produces an $N$ such that for all $i>N$, $|v_i^2 - 2| < \epsilon$.
Using this you can produce $\sqrt{2}+\sqrt{3}$ by composing the two series with the algorithm. Even $\sqrt{\frac{2}{3}}$ can be done similarly using nothing but mechanics.
As it happens, $\sqrt{2}-\sqrt{2}=0$ cannot be done as simply; and, in fact, you need to know more about $\sqrt{2}$ than just the series and a black box copy of the algorithm to show that two instances of it when subtracted are zero. In constructive mathematics, equality is not something you get for free, because there is no general way in the real world to prove if two different numbers are equal or not.
The same is true in human mathematics; there are things that are probably provably zero, or equal, we cannot prove are zero.