The 787 did have its issues, and was certainly a bit of an early warning for the issues to come with the MAX, however it seems like it was more cheaping-out on things, than actively hiding ways in which they were going against regulations. The main issue was the battery housings, which after a few early issues, got re- designed and retro-fitted to the fleet. There hasn't been a 787 hull loss yet.
Additionally because it was a new program, lots of legacy stuff never got in the way. The 787's cockpit is fairly modern, seemingly up to the standards Airbus have been setting for years, and without all the legacy gotchas that are present in the 737's cockpit. Being a higher priced plane also means that there seems to be less nickel-and-diming on the options, and therefore fewer opportunities for airlines to turn down optional safety extras.
As a frequent long-haul traveller, I'm fine on a 787 (although I'd prefer an A350). The 777 is uncomfortable but fine.