The 3.5L Ecoboost will tow a lot better than the the 5.0L will especially at higher elevations. I towed 9,500 lb from Texas to Utah twice with my old 2012 and I could maintain the speed limit on every mountain road along the way. This was back when they had 6 speed transmissions and I am sure that the new 10-speed makes even better now.
I also used to have a 2011 F150 5.0L 3.55 rear ratio company truck that I towed with a few times and then they gave me a 2012 3.5L 3.15 rear ratio and it towed better than 3.55 5.0L pulling the same trailer. The 5.0L would always downshift even on slight grades while the 3.15 3.5L Ecoboost was able to make enough low end power (because of the turbos) to hold 6.th on most of the same grades that would cause the the 5.0L to downshift to 6th. On the hills that the 5.0L would downshift to 4th, the 3.5L Ecoboost would be in 5th turning at much lower rpms.