This process only works if the nearly empty green spool and the full green spool are loaded prior to starting the print. I have tested this extensively, and it does correctly match the color when a spool of the same color is available. However, if no matching color is present, it simply defaults to the next spool with the same material type.
Additionally, it is important to note that the system cannot detect new spools added during an ongoing print, meaning it will remain unaware of the type of spool introduced mid-process.