Respect new records for `CollectionProxy#distinct`
#26980

kamipo wants to merge kamipo:respect_new_records_for_collection_proxy_distinct into rails:master

We do not currently have an analysis of these two commits