The formula only has any point if A and B are arrays. In which case A-B returns an array of differences and summing will aggregate the result. = SUM(A - B)
gives the same result as = SUM(A) - SUM(B)
or = SUMA, -B)

p.s. Depending upon your version of Excel you may need to commit the first formula with Ctrl+Shift+Enter