Pettiness has little to do with virtue young one.
Rather pettiness is but a behavior misconduct meant to tease and undo principle.
Virtue is often compromised by vise.
The egotism that you speak of and its accompanied intrigue are not only dense but it is a "cover", an implied illusion much like the veil.
Some call them shield of defense others projections meant to manipulate.
The question is who are you dealing with when engaging or encountering such pettiness,,? For this requires a situational awareness. An example, pig is unclean by its nature and nurture, yet it is no less clean than dirty but a animal created to be a pig.