I thought it was mean-spirited and a shitty way to treat an invited guest. Clear enough that Jonah Hill felt likewise about it since he didn’t take it in good humor in the moment and then went on to cancel other appearances on that leg of that press tour.
If you really know your target and have some sort of friendly rapport with them, it’s the sort of joke you could make all in fun, but I think it’s clear enough from his reaction that sort of relationship didn’t exist.