emacs - comparing files
M-x diff
We don’t have to enter the file names. It will prompt us for two file names. Just use the select option to select the two different files.
https://www.gnu.org/software/emacs/manual/html_node/emacs/Comparing-Files.html