
Using the Office Deployment Tool online edition at https://config.office.com, you can create an XML deployment file in which you can specify what to deploy, but you can also specify a specific build from a channel. The site does a good job, but if you need reference to older versions: build numbers can be found here, channel identifiers here.
Depending on build, language etc. your bare XML will look something like (note this will install M365Apps x64 edition, removing any MSI edition present):
<Configuration ID="dfae5e67-908c-45bc-aef4-9c3d328f5d7b">
<Add OfficeClientEdition="64" Channel="MonthlyEnterprise" Version="16.0.14827.20220">
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
</Product>
</Add>
<Updates Enabled="TRUE" />
<RemoveMSI />
</Configuration>
Run M365 Apps setup specifying the ODT xml as follows: setup.exe /configure YourConfig.xml