The comparison should be based on the `web_app_name` attribute only. See https://github.com/python-telegram-bot/python-telegram-bot/pull/3898#discussion_r1337582872