There is no universally correct way to determine elevation gain. It's a little like measuring the length of the coastline. The finer the resolution use the longer the coast or the bigger the elevation gain. I suspect each of the programs applies a different amount of smoothing.