The distinctive phase stability and defect physics in CsPbI2Br perovskite