Prefer smaller sizes over quality

I know I can (and do) use profiles to prefer one quality over another, but for many programmes, I am not bothered by quality at all and would like to prioritise just by size. For example I would prefer (say) a 150MB 720p x265 coded file over a 300MB SD file. With the current profile system, if I put multiple qualities in a profile it appears to select the highest over cut off, so in this example would have got the right file, but if there were no small x265 720p file it would prefer the larger h264 file over the smaller SD one if both were available.

Unless there is a way to do this already I cannot work out I would like to request this as a feature in a future release.