The commands

```
$\mathcal{\mbox{$M$}}$

```

and

```
\mbox{$\mathcal{M}$}

```

produce different output. I would like a replacement for `\mbox` that creates a box preserving all features of the current font in math mode. How can I do this?