Mismatching Batteries of Different Voltages

Consider connecting two batteries of different voltages $$x$$ and $$y$$ in parallel. Considering a series circuit, the total voltage would be $$x+y$$. However what happens in this parallel case?

From my understanding, when the two batteries are of the same voltage and connected in parallel, the total voltage remains the same, only the load to each voltage source is halved. Current can only go through one of these voltage sources, so the voltage is the same.

Now when connecting two different batteries in parallel, I have been told that the battery of higher voltage discharges into the battery of lower voltage, until they are both of the same voltage. Essentially the higher voltage battery charges the lower one. I have no idea what this means, or furthermore why it even occurs. Could someone please explain this to me? It seems that connecting different batteries in parallel is a bad idea.

Would connecting different batteries in series also be bad?