Based on the specs for a 2019 the Ford 3.5 Ecoboost beats the RAM 5.7L. See link below. They do say that the RAM does have the bigger brake system, which is more important in the bigger picture (IMO).
Also with a boosted motor the advantage is the torque curve peaks much sooner, around 2500 vs just over 4000 for the 5.7L and gives it a better 0-60 time, but it also has a 100 more FT/Lbs then the 5.7L Hemi so in real world driving the engine will struggle when speeds are low and RPMS are high. Also the rear gear will affect its driveability with respect to weight being towed. IMO the 5.7L is a great motor and will pull well thru its torque band and will have a better all around manners. Does the ECO tow nice, yes at a lower RPM, but once you have to start dropping gears and increasing RPM the Hemi's gonna be nicer, less shifting, less RPM jumps, etc. Also depending on the rear gear the Eco boost will have about the same torque as the 5.7L when turning about 4000 RPMs when looking at the torque graphs.
Also add there is a weight difference between the F150 and the RAM across all 3 cab styles and it makes a difference in the performance numbers, but adds to its drive ability. More TV (Tow Vehicle) weight more stable the combo, again IMO.
Also, the Ford may be rated to tow more, but as we all are aware your trailer weight is directly related to your payload, and 1500 lb payload is a 1500 lb payload regardless of your trailer weight. So your average 30ft camper with a 12% tongue weight (TTs tend to range from 11 to 13% tongue weight) from the factory and a 7000lb GVWR is gonna take up 840lbs of your 1500 lb payload regardless of being Ford, Chevy, or RAM.
In the end it really is all about payload. Find what you like with the Payload to support your needs.
2019 Ford F-150 Limited 2019 Chevy Silverado High Country 2019 Ram 1500 Limited
0-60 MPH 5.1 Seconds 5.4 Seconds 6.2 Seconds
0-60 MPH (towing) 10.0 Seconds 10.6 Seconds 11.9 Seconds
Braking 70-0 MPH 168 ft 175 ft 184 ft
https://www.fordf150blog.com/2019-f-150-3-5-ecoboost-vs-6-2-silverado-vs-5-7-hemi/