This is one of the most common problems associated with the use of symbol $\sim$ (or here $\cong$ as used by OP).
The error comes because of a lack of proper understanding of the definition of symbol $\sim$. The proper definition of this symbol is as follows:
If $\lim\limits_{x \to a}\dfrac{f(x)}{g(x)} = 1$ then we write $f(x) \sim g(x)$ as $x \to a$.
From the above definition it should be clear enough (although many students almost always fail to get it) that this definition is in a multiplicative context. Thus if $f(x) \sim g(x)$ as $x \to a$ then we can replace $f(x)$ by $g(x)$ while calculating the limit of an expression containing $f(x)$ provided $f(x)$ is in a multiplicative context in that expression. Here "multiplicative context" means that the expression containing $f(x)$ must be of type $f(x)h(x)$ (or like $h(x)/f(x)$). And then we can as well calculate the limit of $g(x)h(x)$ and get answer.
This is because $$\lim_{x \to a}f(x)h(x) = \lim_{x \to a}\frac{f(x)}{g(x)}\cdot g(x)h(x) = \lim_{x \to a}1\cdot g(x)h(x)$$
It is in this manner that we replace $f(x)$ by $g(x)$ when $f(x) \sim g(x)$. When calculating limits one must know exactly which rules of limits are used in each step (even when they are being used implicitly).
In the current context $\log(1 + x) \sim x$ as $x \to 0$, but expression $$\left(\frac{1}{\log(1 + x)} - \frac{1}{x}\right)$$ is not of the form $\log(1 + x)\cdot \text{(some function)}$. Well you may write the expression as $$\frac{1}{\log(1 + x)}\left(1 - \frac{\log(1 + x)}{x}\right)$$ and the first factor definitely be replaced by $1/x$ to get $$\frac{1}{x}\left(1 - \frac{\log(1 + x)}{x}\right)$$
Note: Many people try to complicate the things by adding the talk of "order". One should not attach any more meaning to the statement $f(x) \sim g(x)$ than is provided by its definition. Trying to attach more meaning to this statement like "$f(x)$ is almost equal to $g(x)$ to first order of smallness" is only going to add confusion and not make it more intuitive.