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

Hello Experts.

When we get the contention resolution MSG4 from gNB, what are the parameters the gNB is verifying to pass the contention resolutions to assign a C-RNTI for a specific UE ?

Is it just based on TC-RNTI verification which was assigned by gNB to UE in MSG2?

Or additional parameters are checked?

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