The __eq__ of WbRepresentation does not handle precision based comparisons or the fact that dates can be represented in multiple ways (T107870).
The desired function would check that precision is the same then compare the date only up to that precision.