Bilayer Hubbard model: Analysis based on the fermionic sign problem