That's unfortunately totally wrong. Good movies rarely get released, for decades.
I'm professional film critic and I have a good idea of the data, because I analyze the feedback from festivals and industry experts, who decide what gets released and what not. From the Top 10 typically only 3 get selected.
The selection criteria has nothing to do with the quality of the movie and rarely the quality of the trailer, even if it's more important.
Most important are the names. Hollywood divides the Actors and Directors into A+, A, B+, B and C. Without an A name you'll have a hard time to get financing and proper distribution.
2nd most important criteria is the marketing power. How much money will be spent on marketing. If the distributor is not sure he'll try smaller tactics, like smaller releases, with the risk to earn much less. Most important is only the first weekend. Really good movies without names rarely exist, which can drive marketing by its own. Only these movies can survive a bad opening and raise slowly over the weeks to get profitable.
Hollywood knows exactly the triggers beforehand, that's why they can get away with so many formulaic and simple movies still bring profitable. There's not much need for ML, just counting the numbers and trusting the experts is enough. In this case, if a trailer works for which group is certainly helpful though. With trailers you get better feedback than from test screenings, but not much better feedback than from experts.