The notebook with the "hp" logo is an original HP machine, and the incomplete square with a tail is a Compaq machine, which was acquired by HP.
Generally speaking, machines with the HP logo are more popular. Many people buy HP machines, but only HP machines, not Compaq machines.
Yes, both trademarks are in use. It is normal for the same big brand to have multiple sub-brands. On the one hand, this is for strategic considerations and can fully cover the product line (from price line to to the quality line) Just like after Lenovo acquired part of IBM's business, there will still be two traditional trademarks: Lenovo and IBM. After IBM's use period has passed, a THINKPAD will be created to distinguish it from IDEAPAD; on the other hand, just like me As mentioned above, many people like HP, but are resistant to Compaq. If all of Compaq's products are integrated into HP, this group of people will boycott HP.
There are many other considerations, so I won’t go into details one by one.