CLN16668: remove OrderedDefaultDict
 - [x] closes #16668
 - [x] tests added / passed
 - [x] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff``
 - [ ] whatsnew entry

The replacement of usage covered by tests.