Are you importing two different Excel files/sheets into one Airtable table? Depending on what your data looks like that might not be best practice.
But to answer your question directly, to compare the value of {ColA}
to the value of {ColB}
for each record, crate a Formula
type field with this formula:
IF(
{ColA} = {ColB},
{Col B}
)