How will you use this information? Why are you checking for a match? If you just want to be able to detect a match, you can insert a crosstab in the report header or report footer, and then add columnA as the row and columnB as the column. Then create a formula like this:
if columnA = columnB then 1 else 0
Use this as the summary field, and use a maximum as the summary.
-LB