In a recent answer I showed
$$I = \int_0^\tfrac\pi2 \frac{dx}{\left(\sqrt{\sin x}+\sqrt{\cos x}\right)^2} = \sqrt2 \left[F\left(\frac\pi4,\sqrt2\right) + E\left(\frac\pi4,\sqrt2\right)\right] - 2$$
where $F(\phi,k)/E(\phi,k)$ are the incomplete elliptic integrals of first/second kinds, as defined here. For $\lvert z\rvert<\dfrac\pi2$, the identities
$$\begin{cases} F(z, \csc z) = \sin z \, K(\sin z) \\ E(z, \csc z) = \csc z \, E(\sin z) - \cos z \cot z \, K(\sin z) \end{cases}$$
where $E(k)/K(k)$ are the complete EIs of first/second kinds, allow for the simplification
$$\sqrt2 \left[F\left(\frac\pi4,\sqrt2\right) + E\left(\frac\pi4,\sqrt2\right)\right] = 2 \, E\left(\frac1{\sqrt2}\right)$$
This leads me to believe there is a slightly more direct path to evaluating $I$ in terms of $E(k)$. Edit: Indeed, the key is to substitute $\sin x=\dfrac1{\sqrt2}\sin y$.
On the other hand, retracing only some of the steps of that answer (i.e. rationalization and IBP), we obtain another integral that evaluates to the same complete EI expression.
$$\begin{align*} I &= \int_0^\tfrac\pi2 \frac{dx}{\sin x + \cos x + 2\sqrt{\sin x\cos x}} \\ &= \int_0^\tfrac\pi2 \frac{\sin x+\cos x - 2\sqrt{\sin x \cos x}}{(\sin x+\cos x)^2 - 4\sin x\cos x} \, dx \\ &= \int_0^\tfrac\pi2 \frac{\sin x+\cos x - 2\sqrt{\sin x \cos x}}{1-2\sin x\cos x} \, dx \\ &= - 2 + \int_0^\tfrac\pi2 \frac{\sin x(\sin x+\cos x)}{\sqrt{\sin x\cos x}} \, dx \end{align*}$$
so that by some means,
$$J = \int_0^\tfrac\pi2 \frac{\sin x \left(\sin x+\sqrt{1-\sin^2x}\right)}{\sqrt{\sin x \sqrt{1-\sin^2x}}} \, dx \stackrel{?}= 2 \int_0^\tfrac\pi2 \sqrt{1-\frac12\sin^2y} \, dy$$
Q: How can we achieve this, if at all possible?
Mystery solved! The integrand in $J$ simplifies to $\left(\sin x + \cos x\right) \sqrt{\tan x}$, and we can proceed with evaluating as follows:
$$\begin{align*} J &= \left\{\int_{-\tfrac\pi4}^0 + \int_0^\tfrac\pi4\right\} \sqrt2\,\cos x \sqrt{\frac{1+\tan x}{1-\tan x}} \, dx \tag1 \\ &= \int_0^\tfrac\pi4 \sqrt2\,\cos x \left(\sqrt{\frac{1+\tan x}{1-\tan x}} + \sqrt{\frac{1-\tan x}{1+\tan x}}\right) \, dx \tag2 \\ &= \int_0^\tfrac\pi4 \frac{2\sqrt2\,\cos^2x}{\sqrt{\cos(2x)}} \, dx \tag3 \\ &= \int_0^\tfrac\pi2 \frac{1+\cos x}{\sqrt{2\cos x}} \, dx \tag3 \\ &= \int_0^\tfrac\pi2 \frac{1+\cos^2y}{\sqrt{2\cos^2y}} \cdot \frac{2 \sin y \cos y}{\sqrt{1-\cos^4y}} \, dy \tag4 \\ &= \sqrt2 \int_0^\tfrac\pi2 \sqrt{1+\cos^2y} \, dy \\ &= 2 \int_0^\tfrac\pi2 \sqrt{1-\frac12\sin^2y} \, dy \end{align*}$$
$(1)$ Substitute $x\to\dfrac\pi4+x$ and split the integral at $x=0$ to prepare to ...
$(2)$ ... substitute $x\to-x$ on $\left(-\dfrac\pi4,0\right]$.
$(3)$ Condense terms with the double angle identity, substituting $x\to\dfrac x2$ along the way.
$(4)$ Substitute $\cos x = \cos^2y$.