We have been to both.
Overall, we liked Ostia Antica better probably because of the conditions that day. We took a train out from Rome early on a Sunday morning in mid-May 2019. It was a very pleasant day without a lot of people. It was green and there were trees. The temperature was moderate and the place a manageable size. The layout of the town made sense. We really enjoyed it.
Last May, we stayed near Amalfi and wanted to go to Pompeii. Note that it's really not easy to go anywhere from the Amalfi Coast. There's ways to kludge together transportation, trains, buses, ferries, tours but it's a process. I kept trying to figure out a way to do it so we wouldn't be miserable. We settled on having a driver pick us up when we checked out of our lodging, take us to Pompeii, wait for three hours while we toured and then drop us at the Naples train station. It wasn't cheap but it was the easiest, most stress free way to put it together. He was a slow, conscientious driver on the windy, narrow road. It took a long time to get to Pompeii but nobody got carsick. The driver brought his grandson and they went for pizza while we were in Pompeii. That was cute.
What I can say about Pompeii is that I would like to go back again but maybe in the winter. It was boiling hot, dusty and crowded with tours. We thought we were prepared with hats, sunscreen and frozen water bottles. We didn't take a tour and I'm not sure if that would have been better or worse. The place is huge, there's no vantage point to figure out where you're at and the new discoveries we wanted to see were difficult to find.
I travel with my sister. She is usually the most resolute and uncomplaining of travelers. However, after less than two hours in Pompeii, she sat down on a shady ledge and announced, "I'm done!". She never does that. We made our way back to the meeting point and the driver was early. He had tried to tell us that three hours was too much. That's why I'd love to visit again on a cool, drizzly day.
As far as your energy levels, I understand. I contracted COVID about three weeks before we left. While recovered, my energy, especially at the beginning of the trip, was really low. Be aware that the Amalfi Coast is all about steps. Our apartment was 74 steps up from the street and there were ones with far, far more. You might want to think about that while planning. Maybe you could spend a night in the town of Pompei to get there early. I always pictured Pompeii as being in an isolated place but in reality, it's right in a town.
Hope this helps!