I have this code:
\documentclass[11pt]{article}
\usepackage{amsthm}
\usepackage[margin=2.5cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\}
\onehalfspacing
\begin{document}
\paragraph{(1) Paragraph without mbox (for normal text)}
\noindent{}Some text
\paragraph{(2) Paragraph with mbox (for normal text)}\mbox{}\\
\noindent{}Some text
\paragraph{(3) Paragraph without mbox (for definitions)}
\begin{definition}{\textsc{Some definition}}
is something that\ldots{}
\end{definition}
\paragraph{(4) Paragraph with mbox (for definitions)}\mbox{}\\
\begin{definition}{\textsc{Some definition}}
is something that\ldots{}
\end{definition}
\end{document}
which produces this output
I am currently writing a set of notes on a subject, which means that immediately after a paragraph, I might be writing some text [as shown in (1) and (2)] or a definition [as shown in (3) and (4)]. I have read this, which helped forcing the text to start at the beginning og the next line, but my issue is that the spacing is different depending on whether I start a paragraph with some text or a definition.
Is there a way to (globally) set the same amount of space regardless of how I start my paragraph [basically so that I end up with (2) and (3) without having to manually insert/remove the \mbox{} command]


\paragraphis a level 4 section heading intended to be used in teh sequence section.subsection,subsubsection,paragraph it also (by default) numbers automatically like\sectionso it is not intended to be used in this way (`article' sets secnumdepth so that these low level sections are not numbered but if you increase the secnumdepth counter it will) – David Carlisle Dec 17 '18 at 08:00\\at the end of a paragraph, that does not make vertical space but a spurious blank extra underfull line of the paragraph. – David Carlisle Dec 17 '18 at 08:01