My friend made this tool: hbctool, a Hermes bytecode disassembler/assembler.
This will help you disassemble the file into a more readable format (similar to hbcdump), so you can modify and re-assemble it.
Akamai JS Obfuscation
JS Reverse from InfoSec
Livestream Reversing ...
The approach you are looking for is to to parse both files into Abstract Syntax Trees and then compare the two trees for similarity.
A simple solution would be to write a lexer/tokenizer/transducer which replaces the names with just "NAMEGOESHERE" and then use diff.
If you post the two files, I can give it a try.
There's a great resource on W3Schools.
It (this) has different values depending on where it is used:
In a method, this refers to the owner object.
Alone, this refers to the global object.
In a function, this refers to the global object.
In a function, in strict mode, this is undefined.
In an event, this refers to the element that received ...