Don’t be surprised to find the same vital record listed in more than one town, especially in Massachusetts. I’ve seen it in Maine also.
A person could die in one town and be buried in another and have the death be recorded in both towns. Marriages could be recorded in the town where it occurred and also where the people were from, if different(three locations).
The NEHGS has been collecting cemetery transcriptions since 1845. The last update was for Franklin County, Maine.