useId is designed so generated IDs can be consistent for server rendering and hydration when the component tree matches.