I notice your second option provides an almost 4-hour layover in BOS. If you choose this one, you might consider an Uber (or even a water taxi, if running) over to Faneuil Hall market and have a Maine lobster lunch! (or at least a lobster roll at Legal Seafood's airport locations)