It depends on your goal. Do you want to represent all the execution details in your ledger or are you okay with a summarization that is slightly inaccurate but whose final result numbers are the same?
TD actually does this within its systems: depending on where you are getting the data from - thinkorswim vs. its website, and now its Schwab website which has yet different results - you will get one or the other, I think the website gives you a single summarized execution and thinkorswim had the individual executions. Another example of a discrepancy: if you but a t-bill with an accrued coupon amount to pay, on the website this will be reflected accurately but downloading from thinkorswim you won't see the accrued amount reflected.
Instead they patch it up with some adjustment later on. This means some of the balances are temporarily incorrect. I've encountered these issues when importing data in Johnny.
I think if you have correct groupings of these related executions it's totally fine to summarize them. Because the Beancount balances operate on a day time resolution you wouldn't even have temporarily inaccurate balances. But then you wouldn't have the execution detail. In Johnny I keep all the detail, in Beancount I don't.