Comparing `const` declarations and immutable objects