Let $(R,m)$ be a Noetherian Cohen-Macaulay local ring, having Krull dimension $d$ (by this, necessarily $d < \infty$).
Let $I$ be an ideal of $R$ with $\operatorname{depth}(I)=d$, namely, $I$ contains a regular sequence of length $d$ (it cannot contain a longer regular sequence).
Of course $I \subseteq m$.
Question: Is it true that $I=m$?
If not, are there special cases (perhaps in regular local rings?) where $m$ is the unique ideal having maximal depth?
Example: $R=k[x,y]_{(x,y)}$, $d=2$, $m=(x,y)R$, $I=(x(x-1),y)R$; here $I=m$, because $x-1$ is invertible in $R$.
I apologize if my question is trivial.
Thank you very much!