Just to be clear, we will not be recommending anything as per the rule against 'what should I take?' threads, but since you were wondering about what comes closest to ketamine (in the past we were not that comfortable with comparison threads either but I won't be a bitch about it)... it is allowed.
And my answer would be: If I have to choose MXE, but they are both too different to be really satisfied with it as a substitute. In my opinion at least. Opinions on dissociatives are notoriously variable though, and I have read enough times that both compounds are likened to ketamine although MXE much more so.
With MXE, I keep wishing that there were any effects really apparent on the foreground but instead I get a feeling of being stimulated or focused a la MPH / MDPV / R-ket and I feel confused, thoughts make less sense and start to swim a little but without being that valuable or interesting like I get with ketamine. For that reason I have stopped experimenting with MXE.
DXM was much worse for me, I felt feverish, high blood pressure, headache, sweaty and hot-headed and everything becomes terribly confusing and fucked up. I feel rather sick or poisoned. Of course there are a lot of people who get better effects from it than me, but there are also a ton of people who think it is a dirty shitty drug for people who cannot get anything good.