A constitutional expert said the power to appoint the Prime Minister lies at the discretion of the Yang di-Pertuan Agong.