LightOSM and OpenStreetMapX read different nodes from one and the same osm file

Anyone have a quick idea why this fails?

g1 = LightOSM.graph_from_file(
                    data_file, 
                     ...
                    largest_connected_component=true)

g2 = OpenStreetMapX.get_map_data(
                    data_file,
                    ...
                    trim_to_connected_graph=true
                    )
losm_nodes = keys(g1.nodes)
osmx_nodes = keys(g2.nodes)

@assert losm_nodes == osmx_nodes

All possible combinations of largest_connected_component give the same result