I appreciate Waylander's answer. However, although the answer gives you the basic mechanisms for Reimer–Tiemann and Kolbe-Schmidt reactions, it does not address some question and OP's misconceptions such as:
The $\ce{CO2}$ liberated will react with the phenol.
Thus, I'd like to address these by using the same starting materials used in the question. Following is the step-by step mechanism of the first reaction:

The ethoxide ion is a strong base, strong enough to abstract acidic hydrogen from the starting phenol and bromochloroiodomethane $(\ce{CHBrICl})$. After the proton abstraction, the iodide ion then leave from the resulting carbanion to generate relatively stable bromochlorocarbene $(\ce{BrClC\!:})$ in situ. This carbene is the active nucleophile that reacts with the phenoxide anion (generated by another ethoxide ion) to give an anionic intermediate with the negative charge transformed to the halogenated carbon (second step of the mechanism). Technically, this intermediate is the keto-form of the corresponding phenol. Thus, next step, the tautomerism to the enol-form to gain aromaticity, is thermodynamically driven, but a critical one, because the deuterium ion $(\ce{D+})$ can now transfer to two centers, either dihalo-carbanion or phenolic oxygen. Since phenoxide ion is more stable than the carbanion (negative charge is more comfortable with higher electronegative atom), 1,2-$\ce{D+}$ shift happens to give thermodynamically more stable phenoxide intermediate with deuterium on the dihalocarbon (bromochlorodeuteromethyl). The bromine of this intermediate is then replaced by a water molecule followed by a subsequent rearrangement to eliminate remaining chlorine to give the intended deuterated 2-hydroxybenzaldehyde product. Thus, deuterium is not lost but transformed during this reaction.
Now, let's look at Kolbe-Schmidt reaction with given starting materials. Following is the step-by step mechanism of the reaction:

The hydroxide ion is also a strong base, strong enough to abstract acidic hydrogen from a phenol or a starting material such as chloroform $(\ce{CHCl3})$. However, our starting material, dibromodiiodomethane $(\ce{CBr2I2})$ has no acidic hydrogen, but it can act as an excellent electrophile. Thus, the phenoxide anion (generated by reacting with hydroxide ion) reacts with $\ce{CBr2I2}$ replacing one iodide ion to give a neutral trihalo-intermediate (second step of the mechanism). Again, technically, this intermediate is the keto-form of the corresponding phenol. The next step, tautomerism to the enol-form to gain aromaticity is again, thermodynamically driven. However, the deuterium ion $(\ce{D+})$ does not transfer to the phenolic oxygen, because the reaction is still in basic medium. Instead, the $\ce{D+}$ would be abstracted by an another hydroxide ion to give the corresponding phenoxide as shown in the mechanism.
The Iodine of this intermediate is then replaced by a water molecule followed by the subsequent rearrangement to eliminate one of bromines to give the corresponding acid bromide, which subsequently hydrolyzed to give the corresponding benzoic acid. Thus, deuterium is lost during the transformation of this reaction. Also, keep in mind that $\ce{CO2}$ is not liberated to react with the starting phenoxide ion, but $\ce{COO-}$ is generated as a consequence of hydrolysis after the electrophilic substitution of $\ce{CBr2I2}$ to the phenol.