I am trying to create a communications delivery based on entries in a SharePoint list and a library repository which holds files of a variety of formats (PDF, Word, etc.). The trigger occurs when a new item is created in the list. One of the list columns is a lookup to the library title (name of the file). What I am wanting to do is if the library file lookup in the list matches a library item name (which it should because it is a one-to-one match), then attach the library file in an email.
I am running into a problem when trying to grab the "Get file content" action's "File identifier" object. Since this is a dynamic form, I don't want to statically select a document, but fluidly select whichever file object is selected. I've tried to use expressions to grab the items('Apply_to_each')?['DisplayName'] from the library, but that didn't work. I think it didn't work because that data object wasn't exposed in the Dynamic Content.
Here is a screenshot of my flow:

Inside my condition I have written two expressions. One to grab the list lookup and the other for the library title:
Library title:
items('Apply_to_each')?['Title']
List lookup:
TriggerBody()?['XXXInformation']?['Value']
How can I best grab the file that matches my query?