Guess what kind of voting machines Canada uses...
For federal elections we use a paper ballot marked with a pen or pencil. That ballot is then hand counted with scrutinizers from each party present for the counting. We don’t elect prime ministers. We elect a member of parliament from a party... The party selects the leader.