It would appear that this range session poignantly demonstrated the vastly different heat-isolating capabilities of polymer handguards, with their heat shields and substantial air gap, and the metal heat-sinks known as railed forends.
Handguards are designed to protect your mitts from barrel heat, and for this purpose, they do an excellent job. They don’t work very well for mounting lights, lasers, or other stuff. If you don’t need/want that “stuff” on your rifle/carbine (aka a “naked” rail with covers), you would be best served by handguards.
Railed forends are necessary for mounting lights, lasers and “stuff”, but their metal construction means that they get hot, and they stay hot. If you need/want to efficiently mount “stuff” on your rifle/carbine, you are forced to use a rail.
Rails are not “better” than handguards; they both have their pluses and minuses. There’s always a compromise to be made.