It’s been a few years since I looked deeply into it, but I think we produce enough to have everyone survive but not necessarily thrive. At the time, it came out to something like 1700 kcal per person. Even if we did have enough, the next problem is logistics of allocating that food to everyone who needs it.
According to this, it’s more like 3,000kcal/person/day: https://ourworldindata.org/agricultural-production#explore-d...
A lot of food production worldwide is used by meat production, which is quite inefficient. It does generate some useful side product (manure), but also a lot of bad side product. In some places, almost every field is dedicated to meat production. Consuming less meat and shifting food production away from meat would be very good for the environment and instantly solve the issue of the amount of calorie produce.
But as you pointed out, this is not the actual issue. Getting food to people who need it is almost entirely a political and logistical issue at this point. War (especially civil war), natural disaster, with local power stealing international aid, etc, are mostly the biggest responsible for hunger in the 21' century. We have the technology and logistics to accurately drop-ship huge amount of food in even the most remote places in the world, even when the local infrastructure is heavily damaged or inexistent. We cannot deal with local power decision to voluntarily starve a place.