Two Chinese electric car companies are running one of the closest races in the auto industry, and it's anyone guess who pulls ahead next.

In June, NIO sold 40,597 vehicles while its rival XPENG sold 40,126 — a difference of just 471 cars, or about 1 percent. For context, that's smaller than the crowd at a small-town high school football game.

The two companies have been passing each other like marathon runners for years. Sometimes NIO pulls ahead; sometimes XPENG surges past. The latest chapter has them dead even, but analysts say the story is far from over.

Both companies are racing to grow in China's enormous electric vehicle market, which is the biggest and most competitive in the world. NIO has been expanding by launching additional brands beyond its main one, hoping to reach more buyers. The company also stands out for its battery-swapping stations, where drivers can exchange a depleted battery for a fresh one in minutes instead of waiting to charge. XPENG, meanwhile, has bet heavily on fast charging technology and smart driving features.

The competition appears to be working. Both companies posted strong gains last month — NIO's sales jumped 63 percent compared to the same time last year, while XPENG grew 16 percent. That's not just a neck-and-neck sprint; it's two companies sprinting forward together.

What happens next is anyone's guess. But analysts tracking the market say this kind of healthy competition often pushes both companies to build better cars, serve customers better, and drive down prices — good news for anyone looking to go electric. Both are still working toward steady profits, but the trajectory looks upward.

For now, the finish line remains out of sight — and that might be the most exciting part.