Flocking dynamics with voter-like interactions