Liverpool and Manchester City both advanced to the League Cup quarterfinals after dramatic penalty shoot-out victories against Chelsea and Brighton.