Prepare the Pears: Peel, core, and slice the pears into quarters. Remove the seeds, and cut the pears into evenly sized pieces for uniform cooking.
Make the Syrup: In a large saucepan, combine the sugar and water (or wine). Stir over medium heat until the sugar completely dissolves. Add the cinnamon sticks, vanilla pod (split open to release seeds), and a pinch of salt. If you're using lemon juice, add it at this point.
Simmer the Pears: Once the syrup is prepared, add the pear quarters. Reduce the heat to low and allow the pears to simmer gently for 30-45 minutes, stirring occasionally. The pears should be tender but still hold their shape. As they cook, they’ll soak up the syrup, becoming infused with the sweet and aromatic flavors.
Cool and Store: Once the pears are cooked, remove the saucepan from heat and allow the pears to cool in the syrup. Transfer the pears and syrup into airtight jars or containers and refrigerate. The confit can be stored in the fridge for up to two weeks.