You will want to do something similar to the following:
$myVar = Compare-Object (Get-Content file1.html) (Get-Content file2.html)
Then have an if-else that does the upload if the value of $myVar is not null. i.e. if it's null the files match and nothing should be done.