Similar Items: In-Context Credit Assignment via the Core