Yeah Federer's longevity and workload is being underrated hre. 230 matches at Djokovic's current pace is about 4-5 more years. 2019 Federer age-wise is equal to 2025 Djokovic, so Federer did just play more matches. While Federer was a mug at 18-21 compared to Djokodal, he still did play 66, 70, 80, and 95 matches before he really hit his stride. Also, Federer played (maybe wasn't the smartest decision) pretty high workloads 3 times in his 30s (2012, 2014, 2015), which Djokodal have only done once between them combined (Nadal in 2017). Only in his mid 30s, did Federer really start to load manage, whereas Djokodal have been doing so even since their late 20s.
2019 Federer is equal to 2024 Nadal, 2022 Nadal is equal to 2017 Federer, and Federer played mostly a full season in 2018 (albeit not a particularly good one, but still, he won a major), while Nadal took 23 off, so I would say barring a miraculous recovery, Federer has beaten Nadal in longevity. And will have still played a couple hundred more matches. Djokovic could certainly eclipse Federer's age based longevity, but still he would need two more years which is not a given. And it seems unlikely that he'll surpass Federer in total matches.