Optimization of course comparison by comparing only object IDs (courses are immutable). This is important because courses are used as dictionary keys all the time