I used Bosc pears here. They soften while baking but still hold their shape. I like that they're not mushy and still have a nice texture. According to this article from Spruce Eats, Bosc are the best pears. Anjou pears do well for baking, as well as Concorde and French butter pears.