I want to tell whether two tarball files contain identical files, in terms of file name and file content, not including meta-data like date, user, group.
However, There
There is also diffoscope, which is more generic, and allows to compare things recursively (including various formats).
pip install diffoscope