Did Prophet(pbuh) chose someone as Caliph !

thats what i said too , but if Ali was appointed by Prophet [as 12ers believe] then we shud regard all other sahaba as apostates or atleast grave sinners dont u agree ?