use if constexpr instead of Hybrid::ifElse

Merged Praetorius, Simon requested to merge featue/if_constexpr into master

Merge request reports