Change the behavior or add a param to make the percentiles_bucket pipeline aggregation interpolate the result instead of return the nearest value.
The current behaviour is expected as it's properly documented and it was also discussed in the PR that introduced this pipeline (https://github.com/elastic/elasticsearch/pull/13186#discussion_r38412622).
But I find it annoying that the percentils metrics aggregation interpolates the value so both are not consistent.