Relax domain checking to use only `==`

Instead of comparing the instances of the main, merely check for
equality, i.e. make sure both objects describe the same domains.
9 jobs for soft_domain_check in 6 minutes and 30 seconds (queued for 1 second)
Name Stage Failure
failed
test_serial Test
No job log
failed
test_mpi Test
No job log