This is NOT what sparse tensors want to do! The sparse tensor represents [[ 0 0 8],[ 4 0 0]].
The operation you want is requested in #22378 11, which also links to a great third party implementation of scatter_max 9.
Best regards
Thomas