It's not that simple. For example, there is evidence that cardio does not impact pericardial adipose tissue mass, while resistance training does, while only being slightly less efficient than cardio for epicardial adipose tissue mass.
https://jamanetwork.com/journals/jamacardiology/article-abst...
Depending on what your primary risk factor is, it's possible that strength training is more beneficial.
Studies have shown people that engage in strength training tend to gain less age related visceral fat vs. people who solely engage in cardio, as well. https://onlinelibrary.wiley.com/doi/full/10.1002/oby.20949
But yes, the real answer is people should do both.