C++20 introduced default comparison operators.
The default spaceship comparison operator implements a piece-wise comparison, comparing the bases and members in order. The result is a strong, weak or partial comparison (based on the weakest sub-result).
The default spaceship operator will implicitly default the equality operator if none is declared.
Compiler Explorer link: https://compiler-explorer.com/z/foj6nTeh1