Ideally, use ripe but firm tomatoes. You can experiment with different varieties such as heirloom, beefsteak, or vine tomatoes. However, avoid using overly ripe or soft tomatoes, as they may become mushy in the pie.