Inertia-driven spin switching in antiferromagnets