The SQDIFF/SQDIFF_N option would be a solution if you tried to replace alpha channel with the black RGB color.
At least this was my solution to same problem. From my result is obvious that this method is sensitive to brighter pixel values, and I took an opportunity of that.