How to compare values of two components

I have two select components, A and B. They have the same options. The values will be written back to a Snowflake table. On write-back, I want a field C populated "true" if A and B are the same values, or "false" if they are different. I am struggling to find a way to make this work. Suggestions?

@StaceyG
You can do the following:
in field C put the following as the default value:

{{select1.value === select2.value?'true':'false'}}

You can remove the single quotes if true and false are boolean values and not strings

Thank you! That worked perfectly!