Map matching on a junction node chooses wrong edge with almost 0 distance overlap

When provided with a GPX point list that represents actual OSM junction node, we notice that map matching tends to make an incorrect choice at the start or end of point sequence, choosing edges with almost no length overlap. Is there a way to influence this decision? Ie, when the length overlap on an edge is nearly 0 (<.1 meter), choose the next edge match.