The two methods reach the same end by different routes - both solve the problem.
Tips
history
From 《周易·系辞下》: 天下同归而殊途,一致而百虑 - 'all under heaven return to the same place by different paths; arrive at one conclusion through a hundred deliberations.' A foundational Chinese statement of pluralism toward a shared goal.