One of Massachusetts’ largest health insurers, Harvard Pilgrim, has been discussing a merger with the state’s dominant healthcare provider, Partners HealthCare, in a move that could dramatically alter the increasingly consolidated market in and around Boston.