With Candidates in A2:A6 and Rankings in B2:B6, why not simply create the 5x5 matrix in C1 with the simple formula below? Obviously, you can exchange the cell references with dynamic or named ranges, but there is no need for LET, LAMBDA, TOCOL, MAKEARRAY etc.
=VSTACK(
    TRANSPOSE(A2:A6),
    --(TRANSPOSE(B2:B6) < B2:B6)
)