Java 28 just made == work on LocalDate. Everything you were taught is about to change.
JEP 401 lands in JDK 28 as a preview. Integer, LocalDate, Optional and about 30 other JDK classes stop having identity. == compares values, synchronized throws IdentityException, and WeakHashMap keys stop working. Feature freeze is December 3.
