Inflation and dark energy should not be confused for being equivalent mechanisms.
Inflation occurred in a radiation dominated Universe, lasted in the period from 10^-36 sec to 10^-32 after the Big Bang, dark energy about 6 billion years later in a matter dominated Universe and has existed ever since.
In a radiation dominated Universe the expansion characteristic of the Universe is defined as a time dependant
scale factor which is different from the matter dominated Universe.
Taking this into consideration plus how the Universe eventually turned out one can calculate the duration for Inflation.
If the Inflation period was too short, the horizon problem would not be solved and the Universe would not be observed to be isotropic.
Conversely if it was too long, the Universe would take on an open or hyperbolic geometry where complex structures could not form including life itself.
As far as scientists misunderstanding the data there are two different and independent observations both of which point to dark energy.
First is the time dilation of type IA supernova light curves in distant galaxies. This a standard ruler for measuring distance.
The larger than predicted distances indicates acceleration.
Second is the flatness of the Universe itself which can only be explained by dark energy.
The evidence is provided through
Baryon acoustic oscillations in the CMB (cosmic radiation background).
In the CMB plasma wants to collapse under its own gravity but is prevented by radiation pressure exerted by colliding photons.
These opposing forces create an oscillation in the plasma much like a sound wave travelling through air, and create hot and cold spot structures in the CMB.
The true size of these structures can be calculated and compared to their apparent size as measured by the observer.
Comparison of the two reveals the geometry of the Universe is flat.
https://map.gsfc.nasa.gov/mission/sg...ters_geom.html
Steven