What parameters gNB verify to pass the contention resolution to assign a C-RNTI for a specific UE?

Question answered here in this thread → How gNB intialize/select RACH common config parameters? - #5 by Abaghmar