Flow Matching with General Discrete Paths: A Kinetic-Optimal Perspective