In a new book, Mark Perry argues that groups like Hamas will behave rationally if the U.S. engages with them. He’s wrong.