Ghana missed out on AFCON qualification for the first time in two decades after finishing bottom of Group F, which included Sudan, Niger, and Angola.