The company has a system of evaluating FOs who are capable for command. Those who are not, I am afraid will have to remain FO, look for another job or try again at a later stage(hopefully some maturity will have accrued by then).
In some cases, maturity was not an issue; but plain bias, discrimination, and ignorance, led the check airmen to fail certain candidates.