Comparing doc or pdf Files from Using SQL Server

hi friends
i have very interesting qeustion
can we comparing two another files with sql server
for example
in varbinary column have a pdf format file
in inserting new data in this table first i need compare
files with another files in my table
have this file in this table or not
and
can we compare files finding text from inserting file data
thanks

Using FileTables or FILESTREAM?