Assuming capacity of both is the same, there is not much difference in terms of cooling. Split is better for installation than window. The room has no part exposed to the atmosphere. There is only one way to go.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.