if you’ve tried to marry up 8 faces of the mortices with 8 faces of the two tenons, that’s a bit of a challenge, to secure the shelf you only need 3 to fit, the others can have clearance (and probably should).
A shallow rebate on the vertical rails would self-locate all the shelves, you then...