What's hurting the brick and mortar store is not the "going in to compare items" part, but rather it's the "buying on Amazon instead of from the local store" part. You may as well say, "If everyone bought online instead of at the store the stores would close."