The lens on the G7X is definitely better than the Sony lens, but there are many features that differentiate the cameras, and, once again, DXO misses even mentioning them. Since a lot of users will be using jpeg, the difference in image quality is minor.
A extreme slow AF for the G7X that professional testers have mentioned is a huge deal. The built-in EVF of the Sony might be a huge deal to some. Video performance might be a differentiator to some, a touch screen, battery life much better for the Sony, and so on.
A buyer needs to pick the features he values, compare prices, and get what works for him. It could be either that meets his needs.
Canon is obviously betting on the longer and better zoom paired with touch screen and better construction. I tend to believe that buyers will go for the longer and brighter zoom, that coupled with a lower price will attract Best Buy shoppers. It is disappointing that AF couldn't be better, along with battery life. That touch screen must gobble power.