Feedback Control: Unexpected result for block diagram simplifications using matlab
You need to add the tolerance to your minreal function.

This is taken from mathworks website:

"minreal(sys,tol) specifies the tolerance used for state elimination or pole-zero cancellation. The default value is tol = sqrt(eps) and increasing this tolerance forces additional cancellations"