I would like to create a math symbol using a command \smallsquare, which would look like this:
<img src="https://i.stack.imgur.com/q3BHh.png" width="80" height="45">
I know that there is \sqbullet from the mathabx package, or \filledsquare from the mnsymbol package, but I would like to avoid using those (e.g. because there are conflicts with other packages...).
Using the suggestions from this question, here is what I tried (and gave me the above result) :
\newcommand{\smallsquare}{
\vcenter{\hbox{\scalebox{0.45}{$\;\mathbin{ \blacksquare }\;$}}}
}
(using the graphicx package).
But I feel like I am not defined things properly : typically, I added a space \; because I didn't know how to get correct spacing – despite trying to use \mathbin.
I tried other ideas (e.g. \mbox{\tiny$\blacksquare$} or \text{\smaller[100]$\blacksquare$}) but did not get better results.
Henceforth, do you have any suggestions to improve my \smallsquare symbol? I would be happy to learn some new tricks, nice commands, interesting typographic features, etc.

\smblksquare(▪) in several packages, includingunicode-math,stixandstix2. I’d recommend usingunicode-mathin LuaTeX when you can, and legacy packages in PDFTeX when you have to. – Davislor Jan 08 '21 at 16:08\mathbin{\rule{1cm}{1cm}}using whatever lengths you want? – David Carlisle Jan 08 '21 at 16:18F \vcenter{ \hbox{ \rule{1mm}{1mm} } } H, which seems to be quite good to me (even without themathbin...). – Watson Jan 08 '21 at 16:54\mathbin{\vcenter{\hbox{\scalebox{0.45}{$\blacksquare$}}}}– Watson Jan 08 '21 at 16:55\ruleyou want\mathbinto get the spacing for f ▪ g not f▪g – David Carlisle Jan 08 '21 at 16:58