Dependent sources typically will change the Thevenin resistance* so, if you zero the dependent source and combine the resistors into an equivalent, you typically will get the wrong answer.
Since your first schematic has two ports, it's not clear which one you're finding the Thevenin equivalent of but, for example, let's assume it's the 2nd port.
Now that you've found the open circuit voltage, \$U_i\$, there are two approaches to finding the Thevenin resistance \$R_i\$.
One approach is to place a wire across the 2nd port and calculate the current through this wire, the short-circuit current \$I_{SC}\$. Then
$$R_i = \dfrac{U_i}{I_{SC}} $$
A second approach is to find the Thevenin resistance directly by zeroing the independent source \$u_1\$, connecting a 1A current source (the test source) to port 2, and calculating the voltage across the test source \$U_S\$. Then
$$R_i = \dfrac{U_S}{1A}$$
The test source will "activate" the dependent source and so its effect on the Thevenin resistance will become apparent.
*For example, consider the equivalent resistance of the following dependent source in parallel with a resistor:
simulate this circuit – Schematic created using CircuitLab
The dependent current source produces a current that is k times the resistor current.
If I place a 1V test source across this circuit, the source current will be
$$I_S = (1 + k)I_{R1} = (1 + k)\dfrac{1V}{100}$$
The equivalent resistance seen by the test source is just
$$R_{EQ} = \dfrac{V_S}{I_S} = \dfrac{100}{1 + k}\Omega $$
So, the effect of the dependent source has been to make the resistor appear smaller by factor of \$ \dfrac{1}{1 + k}\$.
Ideal circuits with two voltage sources in parallel lead to contradiction, unless they are equal and can be simply replaced with a single one. Note that potentials \$ \varphi_1 \$ and \$ \varphi_2 \$ in your circuit must be equal, since there is no impedance of any kind between them, nor do ideal voltage sources have any internal resistance:
In your case, luckily, these sources produce the same voltage, so the simplest thing to do is to simply remove one of them from the circuit. If you had two ideal sources of a different voltage in parallel, that would lead to contradiction.
In a real circuit, connecting two sources in parallel would lead to a circuit with a very small, but still non-zero resistance between them, which would result in one of the sources (the one with a slightly lower voltage) actually sinking current, but the current through the 5
ohm resistor would only depend on the voltage of the right source.
If you want to put some actual numbers, you can try something like this:
Note that if the sources are again ideal and have completely equal voltages, there will still be no current flowing through the tiny resistance between them, but you should be able to apply the superposition principle.
For a circuit like this, the mesh current method should provide the simplest solution and show that the current through the resistor only depends on the right source.
Best Answer
By superposition, the 3V source is contributing 1A to the system and the 6V source is contributing 2A to the system.
You need to figure out which directions those flow and where they split.