Fixed errant comparison

MatrixAndAccessAreSame used AND instead of equality comparison