Have you spoken to most pilots?
I’m sure some of them have difficulties but generally people who are constantly varying their sleep cycles don’t have a strong body clock and won’t find it too difficult to snooze when given the chance. As for aircraft noise - earplugs. I’ve managed to have some pretty good sleeps in J.
Perhaps they can "snooze" but is that "quality sleep?"
Irrespective of class, I find it so much easier to properly sleep on trains than on planes. Irritation factors on the latter include staff or other passengers moving about the cabin, a level of lighting above one's seat and forward or back of it such as stray light from a galley, the possibility of seatbelt signs coming on with a 'dong' and other noise. And while not always the case, one might be unlucky enough to have to listen to cabin crew talking - occasionally quite loudly - through the supposed hours of rest.
Contrast this with a well designed overnight train, which in a sleeping berth means one has a full height door between one and other travellers, or even sitting up when typically there's little light in the car (making it restful) and on better trains seats that recline and have a generous pitch with the window seat offering a ledge that helps in positioning one for sleeping. Nor is there any annoying armrest to get in the way, so if there's a spare seat next to the traveller, comfort increases further.
And rail sleeping berths never have those annoying seat indentations found on airline seats, with not all airlines offering a mattress topper. Nor does one have the problem on a train of a stupidly designed business class seat (SQ) where placing one's feet comfortably may be challenging.
The temperature on board aircraft can be another problem not usually found on trains.
I'd like to hear from many pilots on AFF about how well they perceive they sleep even in an F seat (where it exists) or J. Surely the constant time and duty hour changes must take some sort of a toll (eventually) on even the most robust individuals.
Some pilots I know inform me that after nine hour flights that are overnight, they walk around the next day like 'zombies' for at least part of the day. That doesn't give me confidence that they're getting sufficient proper rest, so what would it be like for these people after 24 hours?