I do know that $(n \times n)$ nilpotent matrices have the minimal polynomial $x^k$ for some positive integer $k ≤ n$.
I also do know that having the same Jordan normal form means they have the same minimal polynomial.
Any hints are welcome, I strongly suspect this statement to be false.
False: consider $A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}$ and $B = \begin{bmatrix} 0 & 0 \\ 1 & 0 \end{bmatrix}$.